
Originally Posted by
Darrel Taylor
LED1 = !(MyByte != 1)
LED2 = !(MyByte != 2)
LED3 = !(MyByte != 3)
LED4 = !(MyByte != 4)
LED5 = !(MyByte != 5)
LED6 = !(MyByte != 6)
Excellent, the top of my fishing rod is moving a touch!
but I don't understand the response!
eg if the random number comes out as 1, meaning I want to light LED1.....normally - if wanting to light LED1 for 200ms, I'd simply do this....
Code:
HIGH LED1
PAUSE 200
LOW LED1
PAUSE 200
but, how do I do this......
Code:
HIGH LED'result_of_random_number'
PAUSE 200
LOW LED'result_of_random_number'
PAUSE 200
Apologies if that is what you just told me Darrel, but I'm not sure how to use the info you gave me (that'll be the n00bishness that's never far away from all I do!)
Bookmarks