Hi,
I am writing a string to a GLCD, I have the Transparency set to 0 so any new text cleanly overwrites the old text.
However if the the length of the string is shorter then the previous text, the last few characters of the old text remain.
With a conventional LCD I would simply preceed any new text by writing a block of spaces to blank out any old text.
This does not seem to work with my GLCD.
Do I have to write a solid square of back ground? as this seems quite slow to do in hardware.
Thoughts?
GLCD - Writing and Clearing Text of varying length
-
- Posts: 157
- http://meble-kuchenne.info.pl
- Joined: Sun Dec 20, 2020 6:06 pm
- Has thanked: 58 times
- Been thanked: 44 times
-
- Matrix Staff
- Posts: 1624
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 576 times
- Been thanked: 543 times
Re: GLCD - Writing and Clearing Text of varying length
Hi Jay.
Have you tried using the gLCD TextField component?
Using the components Search icon enter textf
You will need to select your display from the gLCD object properties of the textFied component.
You can then use the display the same way as you do with an alphanumeric LCD. i.e. pad out with some spaces.
If you are stuck, you can post or pm your project if you want to keep it private.
Have you tried using the gLCD TextField component?
Using the components Search icon enter textf
You will need to select your display from the gLCD object properties of the textFied component.
You can then use the display the same way as you do with an alphanumeric LCD. i.e. pad out with some spaces.
If you are stuck, you can post or pm your project if you want to keep it private.
Martin