YES I am scrolling letters across an 8 x 8 array. In the code I wrote I have portc =Anodes_data(?)
I am not going to have a CONST array labeled Anodes_Data(9)
In my sub route I want to have the variable Anodes_Data(?) use the CONST array that the sub route calls for.
I never realized this would be harder to explain than actually getting it to work--lol
EXAMPLE: portc = Anodes_Data(0)
the CONST array I want Anodes_Data to be is A_Data(0)
There will be 26 CONST Arrays, each letter of the alphabet
Sub route 1 would be Anodes_Data(?) = A_Data(?)
Sub route 2 would be Anodes_Data(?) = B_Data(?)
Sub route 3 would be Anodes_Data(?) = C_Data(?)
Sub route 4 would be Anodes_Data(?) = D_Data(?)
I have a sub route that I found code for doing this? in the help file but it display a mixed up display.
Code: Select all
SUB MySub()
' DIM index AS BYTE
DIM Anodes_Data(9) AS BYTE
'FOR index = 0 TO BOUND(Anodes_Data) ' CHANGE Anodes_Data() to A_Data()
Anodes_Data= A_Data
' NEXT
END SUB
I tested to see if everything else is working as planned and all is in order except the display, using this sub route, displays jumbled bits scrolling across instead of letters as hoped.
I have about 20 lines of code with portc=Anodes_Data and without adding 20 lines for each letter I figure just changing the CONST array data being used in the WHILE WEND loop.
Am not changing the CONST array data, just the "pointer" name of which CONST array to use each pass through the sub routing for each desired letter.