Andrew Cowan
Senior Member
I'm using an 08M to drive 16 LEDs, via two 74HC595 shift registers.
I have them doing certain patterns in a circle. To generate the patterns, I am generating lookup routines. As I am using an 08M, I am pretty tight on codespace, so a simpler way of doing the following would be nice.
The lookup data is symmetrical around the 256, although there is a 1 at the left.
In other words, I want b6 to go from 0 to 15 then back to 1, but passing through that lookup each time. Is it possible to do?
A
I have them doing certain patterns in a circle. To generate the patterns, I am generating lookup routines. As I am using an 08M, I am pretty tight on codespace, so a simpler way of doing the following would be nice.
Code:
double:
for b1=0 to 6
for b6=0 to 15
lookup 6,(1,32770,16388,8200,4112,2080,1088,640,256,640,1088,2080,4112,8200,16388,32770),w1
gosub shift_data_out
pause 8
next b6
next b1
goto main
In other words, I want b6 to go from 0 to 15 then back to 1, but passing through that lookup each time. Is it possible to do?
A