Quote Originally Posted by picnaut
Hello,

Each time I pass through the loop I increment the flash-pattern word's bit counter by one and do the check again.
When the bit counter reaches 16 I reset it to 0 again (a word variable's bits are numbered 0 to 15).

For instance...

Main:
If Button1 = 0 Then
LED1Pattern = OPERATING_MODE
Else
LED1Pattern = STANDBY_MODE
EndIf

Pause 10

Gosub UpdateLEDState

Goto Main

Hello picnaut,

I just found this post and I find it really interesting. I'd love to see your complete program if you could post it with all the defines and variables declared as I've never played with led's the way you explained it here but it sure sounds cool. I think I could learn a lot if I could take it apart and play with it.

Thanks
jessey