Lightweight proportional text library for C12832 LCD. Easy to modify, fast, robust and compact. Nice font, good for text driven menus, messages, etc. Fell free to use and modify in any projects.
Documentation will be here later.
Usage sample:
Import programapp-board-lcd128
Sample usage of lightweight C12832 LCD library
Diff: lcd128font8.h
- Revision:
- 0:6ac8f630d9a0
- Child:
- 5:ff31feb7d966
diff -r 000000000000 -r 6ac8f630d9a0 lcd128font8.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lcd128font8.h Sat Feb 01 13:13:37 2014 +0000 @@ -0,0 +1,116 @@ +// +// MBED Application Board +// Lightweight C12832 LCD library +// 2014, Alexander Medvedev, @medvdv +// + +// +// Nice proportional font with 8px height +// + +const char lcd_font8p_widths[] = { + 2, 1, 3, 5, 5, 5, 5, 1, 2, 2, 5, 5, 4, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 6, 5, 6, 5, 6, 5, 5, 5, 5, 5, 5, 5, 5, 3, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 1, 3, 4, 1, 5, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 4, 4, 4, 2, 4, 5, 4 +}; + +const char* lcd_font8p[] = { + (const char[]){ 0x00, 0x00 }, + (const char[]){ 0x2F }, + (const char[]){ 0x03, 0x00, 0x03 }, + (const char[]){ 0x14, 0x3E, 0x14, 0x3E, 0x14 }, + (const char[]){ 0x24, 0x6A, 0x3E, 0x2B, 0x12 }, + (const char[]){ 0x22, 0x10, 0x08, 0x04, 0x22 }, + (const char[]){ 0x14, 0x2A, 0x2A, 0x14, 0x20 }, + (const char[]){ 0x03 }, + (const char[]){ 0x1E, 0x21 }, + (const char[]){ 0x21, 0x1E }, + (const char[]){ 0x14, 0x08, 0x3E, 0x08, 0x14 }, + (const char[]){ 0x08, 0x08, 0x3E, 0x08, 0x08 }, + (const char[]){ 0x00, 0x80, 0x70, 0x30 }, + (const char[]){ 0x08, 0x08, 0x08, 0x08, 0x08 }, + (const char[]){ 0x00, 0x00, 0x30, 0x30, 0x00 }, + (const char[]){ 0x20, 0x10, 0x08, 0x04, 0x02 }, + (const char[]){ 0x1E, 0x31, 0x2D, 0x23, 0x1E }, + (const char[]){ 0x00, 0x00, 0x02, 0x3F, 0x00 }, + (const char[]){ 0x22, 0x31, 0x29, 0x25, 0x22 }, + (const char[]){ 0x12, 0x21, 0x25, 0x25, 0x1A }, + (const char[]){ 0x18, 0x14, 0x12, 0x3F, 0x10 }, + (const char[]){ 0x17, 0x25, 0x25, 0x25, 0x19 }, + (const char[]){ 0x1E, 0x25, 0x25, 0x25, 0x18 }, + (const char[]){ 0x01, 0x01, 0x39, 0x05, 0x03 }, + (const char[]){ 0x1A, 0x25, 0x25, 0x25, 0x1A }, + (const char[]){ 0x06, 0x29, 0x29, 0x29, 0x1E }, + (const char[]){ 0x00, 0x00, 0x36, 0x36 }, + (const char[]){ 0x00, 0x80, 0x76, 0x36 }, + (const char[]){ 0x08, 0x08, 0x14, 0x14, 0x22, 0x22 }, + (const char[]){ 0x14, 0x14, 0x14, 0x14, 0x14 }, + (const char[]){ 0x22, 0x22, 0x14, 0x14, 0x08, 0x08 }, + (const char[]){ 0x02, 0x01, 0x29, 0x05, 0x02 }, + (const char[]){ 0x3E, 0x41, 0x5D, 0x55, 0x5E, 0x20 }, + (const char[]){ 0x3E, 0x09, 0x09, 0x09, 0x3E }, + (const char[]){ 0x3F, 0x25, 0x25, 0x25, 0x1A }, + (const char[]){ 0x1E, 0x21, 0x21, 0x21, 0x12 }, + (const char[]){ 0x3F, 0x21, 0x21, 0x22, 0x1C }, + (const char[]){ 0x3F, 0x25, 0x25, 0x25, 0x21 }, + (const char[]){ 0x3F, 0x05, 0x05, 0x05, 0x01 }, + (const char[]){ 0x1E, 0x21, 0x21, 0x29, 0x1A }, + (const char[]){ 0x3F, 0x04, 0x04, 0x04, 0x3F }, + (const char[]){ 0x21, 0x3F, 0x21 }, + (const char[]){ 0x18, 0x20, 0x21, 0x1F, 0x01 }, + (const char[]){ 0x3F, 0x04, 0x04, 0x0A, 0x31 }, + (const char[]){ 0x3F, 0x20, 0x20, 0x20, 0x20 }, + (const char[]){ 0x3F, 0x02, 0x04, 0x02, 0x3F }, + (const char[]){ 0x3F, 0x02, 0x04, 0x08, 0x3F }, + (const char[]){ 0x1E, 0x21, 0x21, 0x21, 0x1E }, + (const char[]){ 0x3F, 0x09, 0x09, 0x09, 0x06 }, + (const char[]){ 0x1E, 0x21, 0x29, 0x31, 0x3E }, + (const char[]){ 0x3F, 0x09, 0x09, 0x19, 0x26 }, + (const char[]){ 0x12, 0x25, 0x25, 0x25, 0x1A }, + (const char[]){ 0x01, 0x01, 0x3F, 0x01, 0x01 }, + (const char[]){ 0x1F, 0x20, 0x20, 0x20, 0x1F }, + (const char[]){ 0x03, 0x0C, 0x30, 0x0C, 0x03 }, + (const char[]){ 0x1F, 0x20, 0x18, 0x20, 0x1F }, + (const char[]){ 0x21, 0x12, 0x0C, 0x12, 0x21 }, + (const char[]){ 0x03, 0x04, 0x38, 0x04, 0x03 }, + (const char[]){ 0x31, 0x29, 0x25, 0x23, 0x21 }, + (const char[]){ 0x00, 0x3F, 0x21, 0x21 }, + (const char[]){ 0x02, 0x04, 0x08, 0x10, 0x20 }, + (const char[]){ 0x00, 0x00, 0x21, 0x21, 0x3F }, + (const char[]){ 0x04, 0x02, 0x01, 0x02, 0x04 }, + (const char[]){ 0x20, 0x20, 0x20, 0x20, 0x20 }, + (const char[]){ 0x00, 0x01, 0x03, 0x04 }, + (const char[]){ 0x10, 0x2A, 0x2A, 0x3C }, + (const char[]){ 0x3F, 0x24, 0x22, 0x1C }, + (const char[]){ 0x1C, 0x22, 0x22, 0x14 }, + (const char[]){ 0x1C, 0x22, 0x24, 0x3F }, + (const char[]){ 0x1C, 0x2A, 0x2A, 0x2C }, + (const char[]){ 0x3E, 0x09, 0x01, 0x02 }, + (const char[]){ 0x0C, 0x52, 0x4A, 0x3C }, + (const char[]){ 0x3F, 0x04, 0x02, 0x3C }, + (const char[]){ 0x3D }, + (const char[]){ 0x40, 0x40, 0x3D }, + (const char[]){ 0x3F, 0x08, 0x0C, 0x32 }, + (const char[]){ 0x3F }, + (const char[]){ 0x3C, 0x02, 0x3C, 0x02, 0x3C }, + (const char[]){ 0x3C, 0x02, 0x02, 0x3C }, + (const char[]){ 0x1C, 0x22, 0x22, 0x1C }, + (const char[]){ 0x7E, 0x22, 0x22, 0x1C }, + (const char[]){ 0x1C, 0x22, 0x22, 0x7E }, + (const char[]){ 0x02, 0x3C, 0x02, 0x02 }, + (const char[]){ 0x24, 0x2A, 0x2A, 0x12 }, + (const char[]){ 0x02, 0x1F, 0x22, 0x22 }, + (const char[]){ 0x1E, 0x20, 0x20, 0x3E }, + (const char[]){ 0x06, 0x18, 0x20, 0x3C, 0x02 }, + (const char[]){ 0x1E, 0x20, 0x1C, 0x20, 0x1E }, + (const char[]){ 0x22, 0x14, 0x08, 0x14, 0x22 }, + (const char[]){ 0x0E, 0x50, 0x50, 0x3E }, + (const char[]){ 0x22, 0x32, 0x2A, 0x26 }, + (const char[]){ 0x00, 0x08, 0x36, 0x41 }, + (const char[]){ 0x00, 0x7F }, + (const char[]){ 0x00, 0x41, 0x36, 0x08 }, + (const char[]){ 0x08, 0x04, 0x08, 0x10, 0x08 }, + (const char[]){ 0x2A, 0x55, 0x2A, 0x55 } +}; + \ No newline at end of file