Custom character definition
Adds a routine to define custom character bitmaps into the controller's 8 custom character slots.
Example usage:
lcd=new TextLCD(D8, D9, D4, D5, D6, D7);
char c_H[]={0x1b,0x1b,0x1b,0x1f,0x1b,0x1b,0x1b,0x1b};
char c_e[]={0x0,0x0,0xe,0x1b,0x1f,0x18,0x18,0xf};
char c_l[]={0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x6};
char c_o[]={0x0,0x0,0xe,0x1b,0x1b,0x1b,0x1b,0xe};
char c_W[]={0x1b,0x1b,0x1b,0x1b,0x1f,0x1f,0x1f,0x1b};
char c_r[]={0x0,0x0,0xe,0x1b,0x18,0x18,0x18,0x18};
char c_d[]={0x3,0x3,0xf,0x1b,0x1b,0x1b,0x1b,0xf};
lcd->defineChar(1, c_H);
lcd->putc(1);
lcd->defineChar(2, c_e);
lcd->putc(2);
lcd->defineChar(3, c_l);
lcd->putc(3);
lcd->putc(3);
lcd->defineChar(4, c_o);
lcd->putc(4);
lcd->putc(32);
lcd->defineChar(5, c_W);
lcd->putc(5);
lcd->putc(4);
lcd->defineChar(6, c_r);
lcd->putc(6);
lcd->putc(3);
lcd->defineChar(7, c_d);
lcd->putc(7);
Last updated:
04 Nov 2014
TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface. Includes support for custom character bitmaps.
HD44780,
TextLCD