Hello and thanks for the reply. I try this shown below but the array indexing is not working either. I can turn it on using the .5 but I can't turn it off using i = 5 and LED[i]
LED var PORTD ' Alias PORTD all LEDS
i VAR byte
i = 5
mainloop:
' for i = 0 to 7 step 1
'High LED[i] ' Turn on LED connected to PORTD.i
High LED.5 ' Turn on LED connected to PORTD.i
Pause 250 ' Delay for .5 seconds
'Low LED[i] ' Turn off LED connected to PORTD.i
Low LED[i] ' Turn off LED connected to PORTD.i
Pause 750 ' Delay for .5 seconds
' Next i
Goto mainloop ' Go back to loop and blink LED forever
End
Bookmarks