I was using Lookup but the table size is restricted by page boundaries (thus only 96 characters can be stored in a table).
Here's the code I was using for a small data table:
Start:
y=0:z=1
For x= 0 to 15 'reading 16 bytes/characters from table Imagebyte
lookup x, ["THIS IS A TEST"], imagebyte
GoSub Writebyte
next x
goto Start
Writebyte: 'Subroutine to send serial image data to shift registers
y=y+1
'high clockpin This statement NOT NEEDED
shiftout datapin,Clockpin,MSBFirst,[imagebyte] 'shift out imagebyte one bit at a time
'low clockpin This statement NOT NEEDED
lcdout $fe, 1 'clear display
lcdout $FE, $14 , imagebyte 'Display value on LCD
Low PORTE.2 'strobe for LCD
'pause 200
z=y//4 'get modulus (remainder) remainder is only zero when 4 divides
If z=0 then 'evenly into x (4/4= 1, 0 remainder, 8/4=2, 0 remainder
high Latch '4 bytes in registers, ie 32 bits so enable both register latches
pause 1 'pause 1 mS may not need.
outena=0 ' I have 4 bytes, light up LEDs
Are you saying I can use Pokecode to create my table of values, and Peekcode to retrieve them? 255 values ? You have about 150 values in your table example below. What does your program do?
Bookmarks