These answers are so easy.
Why do they always turn into personal attacks.
If they don't get it. Explain it again.
Maybe your version will make more sense.
<br>
These answers are so easy.
Why do they always turn into personal attacks.
If they don't get it. Explain it again.
Maybe your version will make more sense.
<br>
DT
No personal attack intended. I thought post #32 explained it...
There are 8 memory locations on most LCDs, starting at $40 and ending at $78. Each custom character will be at one of these locations.
character 0 = $40
character 1= $48
character 2 = $50
character 3= $58
character 4 = $60
character 5= $68
character 6 = $70
character 7= $78
In your code
writes your character to "0" position. or character 0Code:lcdout $fe,$40,$08,$04,$02,$01,$01,$02,$04,$08
To display that character on the first line, first space
second spaceCode:LCDOUT $FE,1,0
If you have a character in the second memory locationCode:LCDOUT $FE,$81,0
lcdout $fe,$48,$08,$04,$02,$01,$01,$02,$04,$08
To display that character on the first line, first space
second spaceCode:LCDOUT $FE,1,1
Code:LCDOUT $FE,$81,1
Last edited by mackrackit; - 5th October 2008 at 13:00.
Dave
Always wear safety glasses while programming.
Sorry Dave, wasn't refering to you.
But your new explanation might help someone.
<br>
DT
thanks for your help,i wrote my character on LCD but what should i do if i want to write all 16 character on LCD in both line 1 and 2? we just have 8 location for RAM.should i overwrite on location 0 to 7 again? is my character in first 8 space deleted or it continue writing automatically on next 8 space?
Not sure I understand.
The LCD can store 8 custom characters. You can display any of them as many times as you want. You can use one and fill all of the display places on the LCD.
Back up on post #32 shows how.
Dave
Always wear safety glasses while programming.
i want to write a sentence with 32 character in another language (not English) on LCD.(so i have to make new fonts) how can i show these 32 character on a 2*16 LCD?
The custom character is just stored at the custom character location. On screen appears a 'copy' of that, not the character itself, if you understand what I mean.
So, you can creat up to 8 characters, store them at their place, and then display that character to the location you want, as many times you want. The LCD just copies the custom character to the location on-screen you specify. Isn't this the same when you display e.g. "AAAAA"?
But remember, when you power off, all are gone. You have to reload the characters on power up.
Ioannis
It seems that you posted the same time as I did!
Now I understand what you want. No, you cannot do that the simple way of "blah blah blah".
You have to fetch each character on its own. Unless, the magician Darrel has another macro available to do the job!
Ioannis
Bookmarks