ik heb eindelijk een volledig werkend programma gemaakt maar ik heb t idee dat ie veel korter kan.
dit is een stukje er van:
portb = %0110010
delayMS 250
if s4 = uit then goto hoofdprogramma
If s1 = UIT Then goto basis
if s3 = uit then goto basis3
portb = %1001101
delayMS 250
if s4 = uit then goto hoofdprogramma
If s1 = UIT Then goto basis
if s3 = uit then goto basis3
portb = %0110010
delayMS 250
if s4 = uit then goto hoofdprogramma
If s1 = UIT Then goto basis
if s3 = uit then goto basis3
portb = %1001101
delayms 250
if s4 = uit then goto hoofdprogramma
If s1 = UIT Then goto basis
if s3 = uit then goto basis3
portb = %0110010
delayMS 250
if s4 = uit then goto hoofdprogramma
If s1 = UIT Then goto basis
if s3 = uit then goto basis3
portb = %1001101
delayMS 250
if s4 = uit then goto hoofdprogramma
If s1 = UIT Then goto basis
if s3 = uit then goto basis3
portb = %0110010

kan ik dit korter maken? zo ja hoe?

Subroutines? ;)
Oftewel... RTFM.

[Bericht gewijzigd door Henry S. op ]

Werkend prog ????
Ik wil het betwijfelen met een 7-bits code op portB.
En ja, natuurlijk kan het korter als dezelfde code tot 3 keer toe wordt uitgevoerd.
Ofwel je hebt het gisternacht met je dronken kop in zitten kloppen, ofwel je bent aan het trollen.

aan het eind goto begin zeggen of gewoon eens RTFM

Op 9 juni 2007 03:48:57 schreef Henry S.:
Subroutines? ;)
Oftewel... RTFM.

@ Henry; Wat doe jij hier op dit tijdstip ??
Je hoort in je mandje te liggen...

Theo