Invert Display font on Parallax 2x16 display?
eagletalontim
Posts: 1,399
Not sure if this is the correct word for this, but I would like to "invert" the font on the parallax 2x16 display just on one line. By invert, I mean to turn off the pixels that show the letter and turn on the pixels around it so instead of having black letters, the background would be black and the font would be "clear"?
Comments
What I do is enclosing the actual menu entry like this
> Entry 1 <
I did a menu-based program using a character LCD last year where I used a custom character (big arrow) to indicate the active item in the display. For values that could change I also turned on the underline cursor and put it under the least-significant digit of the value to change.
Starting on page 7 of the LCD doc:
http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/27976-7-9-ParallaxSerialLCD-v3.0.pdf
you'll find the list of commands supported. Unfortunately, inverted characters are not included as Mr. McPhalen has related. I really wish they were as I could seriously use them in a project.
-- http://www.parallax.com/ProductInfo/Microcontrollers/BASICStampSoftware/LCDCharacterCreator/tabid/482/Default.aspx
I just used this the other day to create three characters that run in sequence while a device is waiting on a GPS receiver to lock. Here's what my code looks like:
I have my own serial LCD object which is based on the one I wrote back in 2006 while at Parallax. It's attached in case you want it.
Well, you can have up to eight inverted characters in a display. What you can also do it update a custom character on the fly. When you do this, the display will automatically update to the new definition. I did an odometer demo a long time ago that could display a rolling digit in the 10ths value of the display. The code worked by using a single character and updating it's definitions based on the 1/100ths value to create the roll position.
...well, gee - that makes sense! Roll my own? It never occured to me. Slow thinking, I am.
And, I wasn't aware the characters could be updated on-the-fly. Thanks much for that tidbit!
It's a very useful trick to know. On a project I'm working on this evening I do a little animation while waiting on GPS:
In this case I'm using custom characters 0..3 for the animation. If I didn't have four available characters, I could and would do this: