Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Custom Character Generator for character LCDs


#1

You can work them out yourself on graph paper, but I found this little Windows program to be very helpful both for generating the data bytes for custom LCD characters, and for giving you a preview of what the character will look like at its real size:


LCD Character Generator

Jim Remington’s LCD bar graph program is a good example of how to store custom character arrays in AVR program memory (optional, but probably worth it if you’re not generating them on the fly), load them to the LCD, and display them on the screen.

-Adam

P.S. The program is a little odd in that it’s a standalone executable that’s actually an encrypted self-extracting zip file (so your virus scanning program can’t take a look at it until you actually up and run it!). I don’t think this was done maliciously, and my up-to-date McAfee doesn’t take issue with the program files that get temporarily unpacked to “C:\Documents and Settings\Username\Local Settings\Temp\ir_ext_temp_n”, or the running application itself.


#2

Cool program! My favorite way is to write the bytes in binary, like this:

#include <avr/pgmspace.h>
const char happy[] PROGMEM = {  
  0b00000,
  0b01010,
  0b01010,
  0b01010,
  0b00000,
  0b10001,
  0b01110,
  0b00000
};

If you squint, you can kind of see the smiley face in the 0’s and 1’s.
-Paul