Hi,
I want to have a digital light display of 8 lights, representing 8 digital bits, and incrementing from 0 to 255 in the normal digital way, i.e.
00000000
00000001
00000010
00000011
00000100
etc
Now, I thought (as usual, the long way round) I could do this by having a timer increment a variable X every second, from 0 to 255 then back to zero again, followed by 255 'If' statements, i.e
If X = 3 Then (and set the respective TRUE/FALSE values for each of the 8 Light variables L0 to L7)
and I could then define the status of the lights as being FALSE = Black and TRUE = white (or whatever colors or glow level I choose)
Tell me, there must be a better and more efficient way of achieving all this,
Thanks
Rock