I want to turn on a single led on the 8x8 display, then PAUSE, then loop to routine. Any idea how to single out one bit randomized?
This has been shown at the begining of the thread. Anyhow in your case:
Code:
Ran_Word var word
AA0 var Byte
Ini:
RANDOM Ran_Word
For AA0= 0 to 7
Pause 100
PortB.0[AA0] = Ran_Word.0[AA0]
pause 100
PortC.0[AA0] = Ran_Word.0[AA0 + 8]
Next AA0
goto Ini
In the above example I assume you are using portB and PortC, if not then change them as per your need.
Al.
All progress began with an idea
Bookmarks