var byte LEDS[4] 'declare array with 4 members
LEDS[0]=3
LEDS[1]=8
LEDS[2]=12
LEDS[3]=9 ' put port numbers into array
FOR A=0 to 3 ' make increment
high leds[A] 'set high port number, stored in specific cell of LEDS array. could try high portb.0[leds[a]]
PAUSE 1000 'wait some time,
low LEDS[A] ' turn led off might be low leds[A]
PAUSE 1000
NEXT
see port indexing this forum just a few days ago or page 30 of pbp manual
you could also use lookup




Bookmarks