So what I want to do, I'll write a code in some imaginary basic, a bit short code that will do a running led light:
DIM LEDS(3) 'define array with 3 entries
LET LEDS(1)=PORTA.2
LET LEDS(2)=PORTB.3
LET LEDS(3)=PORTC.1 'enter data into array
FOR A=1 TO 3
HIGH LEDS(A)' make pin high
pause 500 ' wait some time
LOW LEDS(A) 'make pin low
NEXT A
Bookmarks