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.

Dependents:   app-board-lcd128

Documentation will be here later.

Usage sample:

Import programapp-board-lcd128

Sample usage of lightweight C12832 LCD library

Committer:
medvdv
Date:
Sat Feb 01 13:13:37 2014 +0000
Revision:
0:6ac8f630d9a0
Child:
5:ff31feb7d966
first variant, commented, tested briefly

Who changed what in which revision?

UserRevisionLine numberNew contents of line
medvdv 0:6ac8f630d9a0 1 //
medvdv 0:6ac8f630d9a0 2 // MBED Application Board
medvdv 0:6ac8f630d9a0 3 // Lightweight C12832 LCD library
medvdv 0:6ac8f630d9a0 4 // 2014, Alexander Medvedev, @medvdv
medvdv 0:6ac8f630d9a0 5 //
medvdv 0:6ac8f630d9a0 6
medvdv 0:6ac8f630d9a0 7 //
medvdv 0:6ac8f630d9a0 8 // Nice proportional font with 8px height
medvdv 0:6ac8f630d9a0 9 //
medvdv 0:6ac8f630d9a0 10
medvdv 0:6ac8f630d9a0 11 const char lcd_font8p_widths[] = {
medvdv 0:6ac8f630d9a0 12 2, 1, 3, 5, 5, 5, 5, 1, 2, 2, 5, 5, 4,
medvdv 0:6ac8f630d9a0 13 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,
medvdv 0:6ac8f630d9a0 14 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,
medvdv 0:6ac8f630d9a0 15 1, 3, 4, 1, 5, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 4, 4, 4, 2, 4, 5, 4
medvdv 0:6ac8f630d9a0 16 };
medvdv 0:6ac8f630d9a0 17
medvdv 0:6ac8f630d9a0 18 const char* lcd_font8p[] = {
medvdv 0:6ac8f630d9a0 19 (const char[]){ 0x00, 0x00 },
medvdv 0:6ac8f630d9a0 20 (const char[]){ 0x2F },
medvdv 0:6ac8f630d9a0 21 (const char[]){ 0x03, 0x00, 0x03 },
medvdv 0:6ac8f630d9a0 22 (const char[]){ 0x14, 0x3E, 0x14, 0x3E, 0x14 },
medvdv 0:6ac8f630d9a0 23 (const char[]){ 0x24, 0x6A, 0x3E, 0x2B, 0x12 },
medvdv 0:6ac8f630d9a0 24 (const char[]){ 0x22, 0x10, 0x08, 0x04, 0x22 },
medvdv 0:6ac8f630d9a0 25 (const char[]){ 0x14, 0x2A, 0x2A, 0x14, 0x20 },
medvdv 0:6ac8f630d9a0 26 (const char[]){ 0x03 },
medvdv 0:6ac8f630d9a0 27 (const char[]){ 0x1E, 0x21 },
medvdv 0:6ac8f630d9a0 28 (const char[]){ 0x21, 0x1E },
medvdv 0:6ac8f630d9a0 29 (const char[]){ 0x14, 0x08, 0x3E, 0x08, 0x14 },
medvdv 0:6ac8f630d9a0 30 (const char[]){ 0x08, 0x08, 0x3E, 0x08, 0x08 },
medvdv 0:6ac8f630d9a0 31 (const char[]){ 0x00, 0x80, 0x70, 0x30 },
medvdv 0:6ac8f630d9a0 32 (const char[]){ 0x08, 0x08, 0x08, 0x08, 0x08 },
medvdv 0:6ac8f630d9a0 33 (const char[]){ 0x00, 0x00, 0x30, 0x30, 0x00 },
medvdv 0:6ac8f630d9a0 34 (const char[]){ 0x20, 0x10, 0x08, 0x04, 0x02 },
medvdv 0:6ac8f630d9a0 35 (const char[]){ 0x1E, 0x31, 0x2D, 0x23, 0x1E },
medvdv 0:6ac8f630d9a0 36 (const char[]){ 0x00, 0x00, 0x02, 0x3F, 0x00 },
medvdv 0:6ac8f630d9a0 37 (const char[]){ 0x22, 0x31, 0x29, 0x25, 0x22 },
medvdv 0:6ac8f630d9a0 38 (const char[]){ 0x12, 0x21, 0x25, 0x25, 0x1A },
medvdv 0:6ac8f630d9a0 39 (const char[]){ 0x18, 0x14, 0x12, 0x3F, 0x10 },
medvdv 0:6ac8f630d9a0 40 (const char[]){ 0x17, 0x25, 0x25, 0x25, 0x19 },
medvdv 0:6ac8f630d9a0 41 (const char[]){ 0x1E, 0x25, 0x25, 0x25, 0x18 },
medvdv 0:6ac8f630d9a0 42 (const char[]){ 0x01, 0x01, 0x39, 0x05, 0x03 },
medvdv 0:6ac8f630d9a0 43 (const char[]){ 0x1A, 0x25, 0x25, 0x25, 0x1A },
medvdv 0:6ac8f630d9a0 44 (const char[]){ 0x06, 0x29, 0x29, 0x29, 0x1E },
medvdv 0:6ac8f630d9a0 45 (const char[]){ 0x00, 0x00, 0x36, 0x36 },
medvdv 0:6ac8f630d9a0 46 (const char[]){ 0x00, 0x80, 0x76, 0x36 },
medvdv 0:6ac8f630d9a0 47 (const char[]){ 0x08, 0x08, 0x14, 0x14, 0x22, 0x22 },
medvdv 0:6ac8f630d9a0 48 (const char[]){ 0x14, 0x14, 0x14, 0x14, 0x14 },
medvdv 0:6ac8f630d9a0 49 (const char[]){ 0x22, 0x22, 0x14, 0x14, 0x08, 0x08 },
medvdv 0:6ac8f630d9a0 50 (const char[]){ 0x02, 0x01, 0x29, 0x05, 0x02 },
medvdv 0:6ac8f630d9a0 51 (const char[]){ 0x3E, 0x41, 0x5D, 0x55, 0x5E, 0x20 },
medvdv 0:6ac8f630d9a0 52 (const char[]){ 0x3E, 0x09, 0x09, 0x09, 0x3E },
medvdv 0:6ac8f630d9a0 53 (const char[]){ 0x3F, 0x25, 0x25, 0x25, 0x1A },
medvdv 0:6ac8f630d9a0 54 (const char[]){ 0x1E, 0x21, 0x21, 0x21, 0x12 },
medvdv 0:6ac8f630d9a0 55 (const char[]){ 0x3F, 0x21, 0x21, 0x22, 0x1C },
medvdv 0:6ac8f630d9a0 56 (const char[]){ 0x3F, 0x25, 0x25, 0x25, 0x21 },
medvdv 0:6ac8f630d9a0 57 (const char[]){ 0x3F, 0x05, 0x05, 0x05, 0x01 },
medvdv 0:6ac8f630d9a0 58 (const char[]){ 0x1E, 0x21, 0x21, 0x29, 0x1A },
medvdv 0:6ac8f630d9a0 59 (const char[]){ 0x3F, 0x04, 0x04, 0x04, 0x3F },
medvdv 0:6ac8f630d9a0 60 (const char[]){ 0x21, 0x3F, 0x21 },
medvdv 0:6ac8f630d9a0 61 (const char[]){ 0x18, 0x20, 0x21, 0x1F, 0x01 },
medvdv 0:6ac8f630d9a0 62 (const char[]){ 0x3F, 0x04, 0x04, 0x0A, 0x31 },
medvdv 0:6ac8f630d9a0 63 (const char[]){ 0x3F, 0x20, 0x20, 0x20, 0x20 },
medvdv 0:6ac8f630d9a0 64 (const char[]){ 0x3F, 0x02, 0x04, 0x02, 0x3F },
medvdv 0:6ac8f630d9a0 65 (const char[]){ 0x3F, 0x02, 0x04, 0x08, 0x3F },
medvdv 0:6ac8f630d9a0 66 (const char[]){ 0x1E, 0x21, 0x21, 0x21, 0x1E },
medvdv 0:6ac8f630d9a0 67 (const char[]){ 0x3F, 0x09, 0x09, 0x09, 0x06 },
medvdv 0:6ac8f630d9a0 68 (const char[]){ 0x1E, 0x21, 0x29, 0x31, 0x3E },
medvdv 0:6ac8f630d9a0 69 (const char[]){ 0x3F, 0x09, 0x09, 0x19, 0x26 },
medvdv 0:6ac8f630d9a0 70 (const char[]){ 0x12, 0x25, 0x25, 0x25, 0x1A },
medvdv 0:6ac8f630d9a0 71 (const char[]){ 0x01, 0x01, 0x3F, 0x01, 0x01 },
medvdv 0:6ac8f630d9a0 72 (const char[]){ 0x1F, 0x20, 0x20, 0x20, 0x1F },
medvdv 0:6ac8f630d9a0 73 (const char[]){ 0x03, 0x0C, 0x30, 0x0C, 0x03 },
medvdv 0:6ac8f630d9a0 74 (const char[]){ 0x1F, 0x20, 0x18, 0x20, 0x1F },
medvdv 0:6ac8f630d9a0 75 (const char[]){ 0x21, 0x12, 0x0C, 0x12, 0x21 },
medvdv 0:6ac8f630d9a0 76 (const char[]){ 0x03, 0x04, 0x38, 0x04, 0x03 },
medvdv 0:6ac8f630d9a0 77 (const char[]){ 0x31, 0x29, 0x25, 0x23, 0x21 },
medvdv 0:6ac8f630d9a0 78 (const char[]){ 0x00, 0x3F, 0x21, 0x21 },
medvdv 0:6ac8f630d9a0 79 (const char[]){ 0x02, 0x04, 0x08, 0x10, 0x20 },
medvdv 0:6ac8f630d9a0 80 (const char[]){ 0x00, 0x00, 0x21, 0x21, 0x3F },
medvdv 0:6ac8f630d9a0 81 (const char[]){ 0x04, 0x02, 0x01, 0x02, 0x04 },
medvdv 0:6ac8f630d9a0 82 (const char[]){ 0x20, 0x20, 0x20, 0x20, 0x20 },
medvdv 0:6ac8f630d9a0 83 (const char[]){ 0x00, 0x01, 0x03, 0x04 },
medvdv 0:6ac8f630d9a0 84 (const char[]){ 0x10, 0x2A, 0x2A, 0x3C },
medvdv 0:6ac8f630d9a0 85 (const char[]){ 0x3F, 0x24, 0x22, 0x1C },
medvdv 0:6ac8f630d9a0 86 (const char[]){ 0x1C, 0x22, 0x22, 0x14 },
medvdv 0:6ac8f630d9a0 87 (const char[]){ 0x1C, 0x22, 0x24, 0x3F },
medvdv 0:6ac8f630d9a0 88 (const char[]){ 0x1C, 0x2A, 0x2A, 0x2C },
medvdv 0:6ac8f630d9a0 89 (const char[]){ 0x3E, 0x09, 0x01, 0x02 },
medvdv 0:6ac8f630d9a0 90 (const char[]){ 0x0C, 0x52, 0x4A, 0x3C },
medvdv 0:6ac8f630d9a0 91 (const char[]){ 0x3F, 0x04, 0x02, 0x3C },
medvdv 0:6ac8f630d9a0 92 (const char[]){ 0x3D },
medvdv 0:6ac8f630d9a0 93 (const char[]){ 0x40, 0x40, 0x3D },
medvdv 0:6ac8f630d9a0 94 (const char[]){ 0x3F, 0x08, 0x0C, 0x32 },
medvdv 0:6ac8f630d9a0 95 (const char[]){ 0x3F },
medvdv 0:6ac8f630d9a0 96 (const char[]){ 0x3C, 0x02, 0x3C, 0x02, 0x3C },
medvdv 0:6ac8f630d9a0 97 (const char[]){ 0x3C, 0x02, 0x02, 0x3C },
medvdv 0:6ac8f630d9a0 98 (const char[]){ 0x1C, 0x22, 0x22, 0x1C },
medvdv 0:6ac8f630d9a0 99 (const char[]){ 0x7E, 0x22, 0x22, 0x1C },
medvdv 0:6ac8f630d9a0 100 (const char[]){ 0x1C, 0x22, 0x22, 0x7E },
medvdv 0:6ac8f630d9a0 101 (const char[]){ 0x02, 0x3C, 0x02, 0x02 },
medvdv 0:6ac8f630d9a0 102 (const char[]){ 0x24, 0x2A, 0x2A, 0x12 },
medvdv 0:6ac8f630d9a0 103 (const char[]){ 0x02, 0x1F, 0x22, 0x22 },
medvdv 0:6ac8f630d9a0 104 (const char[]){ 0x1E, 0x20, 0x20, 0x3E },
medvdv 0:6ac8f630d9a0 105 (const char[]){ 0x06, 0x18, 0x20, 0x3C, 0x02 },
medvdv 0:6ac8f630d9a0 106 (const char[]){ 0x1E, 0x20, 0x1C, 0x20, 0x1E },
medvdv 0:6ac8f630d9a0 107 (const char[]){ 0x22, 0x14, 0x08, 0x14, 0x22 },
medvdv 0:6ac8f630d9a0 108 (const char[]){ 0x0E, 0x50, 0x50, 0x3E },
medvdv 0:6ac8f630d9a0 109 (const char[]){ 0x22, 0x32, 0x2A, 0x26 },
medvdv 0:6ac8f630d9a0 110 (const char[]){ 0x00, 0x08, 0x36, 0x41 },
medvdv 0:6ac8f630d9a0 111 (const char[]){ 0x00, 0x7F },
medvdv 0:6ac8f630d9a0 112 (const char[]){ 0x00, 0x41, 0x36, 0x08 },
medvdv 0:6ac8f630d9a0 113 (const char[]){ 0x08, 0x04, 0x08, 0x10, 0x08 },
medvdv 0:6ac8f630d9a0 114 (const char[]){ 0x2A, 0x55, 0x2A, 0x55 }
medvdv 0:6ac8f630d9a0 115 };
medvdv 0:6ac8f630d9a0 116