Yes, I know how CGRAM character works.
I asked two questions:
1. Can I any time access any CGRAM address?
2. Can I use variable for accessing that address?
Yes, I know how CGRAM character works.
I asked two questions:
1. Can I any time access any CGRAM address?
2. Can I use variable for accessing that address?
what have you tried ?
what did it do ?
what do actually want it to do differently ?
or is it that you have you copied this code from somewhere
and need help to convert it to pbpCode:DIM GRAPH(8) 'define array with 8 lines GRAPH(1)=$FE GRAPH(2)=$CO ' and so on, example of data in array For A=0 to 7 ' loop till 8 LCDOUT $FE, $40+A, GRAPH(A) - write bytes to LCD memory NEXT A
Warning I'm not a teacher
I don't mean to sound harsh but like Richard says, have you tried to use any CGRAM adress at any time or use a variable when setting CGRAM adress?
1. Can I any time access any CGRAM address?
Yes, of course you can, just send the command for setting the adresspointer to whatever location you want.
2. Can I use variable for accessing that address?
Yes, of course tou can, just send the command for setting the adresspointer to whatever location you want. (That location being held in a variable or in the result of calculation, like in the example).
Just try it for crying out loud :-) 10 minutes of writing some testcode would provide you with the answers you've been looking for for two days now :-)
/Henrik.
I do not have access to hardware on weekends, so I prefer to solve theoretic ussies on weekend, to deal with them in hardware next week![]()
Assuming the array is bytes (characters) because that’s what you did in your first post, are you talking about rotating the bytes through the array?
There are a lot of ways to do it, you can run a loop that copies the array element after the current byte, to the current byte, and write the new byte to the last one.
That would see your data scroll across the screen for example, even though you use the same array in the same order in the LCDOUT command, it’s the data that changed.
If it’s this circuit in the other thread where your LCD isn’t working, if you power it, but don’t initialise it do you see the first row of solid bars?
If not, you can look at power and contrast first.
No, these are different circuitsThis one works as it should, and I already created some interesting animation effects, like ones that can be seen in old skool demoscene intros
![]()
Bookmarks