Software to control a 128x64 graphic LCD with KS0107B and KS0108B controller. Slight modification to Anders Hörnfeldts Code which increases framerate by up to 300%.
font.h@0:0cc7719c6d87, 2010-12-25 (annotated)
- Committer:
- hapoo
- Date:
- Sat Dec 25 10:14:10 2010 +0000
- Revision:
- 0:0cc7719c6d87
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hapoo | 0:0cc7719c6d87 | 1 | #ifndef FONT_H |
hapoo | 0:0cc7719c6d87 | 2 | #define FONT_H |
hapoo | 0:0cc7719c6d87 | 3 | // (c) Radosław Kwiecień - http://en.radzio.dxp.pl/ks0108/ |
hapoo | 0:0cc7719c6d87 | 4 | static const char font5x8[] = { |
hapoo | 0:0cc7719c6d87 | 5 | 0x00, 0x00, 0x00, 0x00, 0x00,// (spacja) |
hapoo | 0:0cc7719c6d87 | 6 | 0x00, 0x00, 0x5F, 0x00, 0x00,// ! |
hapoo | 0:0cc7719c6d87 | 7 | 0x00, 0x07, 0x00, 0x07, 0x00,// " |
hapoo | 0:0cc7719c6d87 | 8 | 0x14, 0x7F, 0x14, 0x7F, 0x14,// # |
hapoo | 0:0cc7719c6d87 | 9 | 0x24, 0x2A, 0x7F, 0x2A, 0x12,// $ |
hapoo | 0:0cc7719c6d87 | 10 | 0x23, 0x13, 0x08, 0x64, 0x62,// % |
hapoo | 0:0cc7719c6d87 | 11 | 0x36, 0x49, 0x55, 0x22, 0x50,// & |
hapoo | 0:0cc7719c6d87 | 12 | 0x00, 0x05, 0x03, 0x00, 0x00,// ' |
hapoo | 0:0cc7719c6d87 | 13 | 0x00, 0x1C, 0x22, 0x41, 0x00,// ( |
hapoo | 0:0cc7719c6d87 | 14 | 0x00, 0x41, 0x22, 0x1C, 0x00,// ) |
hapoo | 0:0cc7719c6d87 | 15 | 0x08, 0x2A, 0x1C, 0x2A, 0x08,// * |
hapoo | 0:0cc7719c6d87 | 16 | 0x08, 0x08, 0x3E, 0x08, 0x08,// + |
hapoo | 0:0cc7719c6d87 | 17 | 0x00, 0x50, 0x30, 0x00, 0x00,// , |
hapoo | 0:0cc7719c6d87 | 18 | 0x08, 0x08, 0x08, 0x08, 0x08,// - |
hapoo | 0:0cc7719c6d87 | 19 | 0x00, 0x30, 0x30, 0x00, 0x00,// . |
hapoo | 0:0cc7719c6d87 | 20 | 0x20, 0x10, 0x08, 0x04, 0x02,// / |
hapoo | 0:0cc7719c6d87 | 21 | 0x3E, 0x51, 0x49, 0x45, 0x3E,// 0 |
hapoo | 0:0cc7719c6d87 | 22 | 0x00, 0x42, 0x7F, 0x40, 0x00,// 1 |
hapoo | 0:0cc7719c6d87 | 23 | 0x42, 0x61, 0x51, 0x49, 0x46,// 2 |
hapoo | 0:0cc7719c6d87 | 24 | 0x21, 0x41, 0x45, 0x4B, 0x31,// 3 |
hapoo | 0:0cc7719c6d87 | 25 | 0x18, 0x14, 0x12, 0x7F, 0x10,// 4 |
hapoo | 0:0cc7719c6d87 | 26 | 0x27, 0x45, 0x45, 0x45, 0x39,// 5 |
hapoo | 0:0cc7719c6d87 | 27 | 0x3C, 0x4A, 0x49, 0x49, 0x30,// 6 |
hapoo | 0:0cc7719c6d87 | 28 | 0x01, 0x71, 0x09, 0x05, 0x03,// 7 |
hapoo | 0:0cc7719c6d87 | 29 | 0x36, 0x49, 0x49, 0x49, 0x36,// 8 |
hapoo | 0:0cc7719c6d87 | 30 | 0x06, 0x49, 0x49, 0x29, 0x1E,// 9 |
hapoo | 0:0cc7719c6d87 | 31 | 0x00, 0x36, 0x36, 0x00, 0x00,// : |
hapoo | 0:0cc7719c6d87 | 32 | 0x00, 0x56, 0x36, 0x00, 0x00,// ; |
hapoo | 0:0cc7719c6d87 | 33 | 0x00, 0x08, 0x14, 0x22, 0x41,// < |
hapoo | 0:0cc7719c6d87 | 34 | 0x14, 0x14, 0x14, 0x14, 0x14,// = |
hapoo | 0:0cc7719c6d87 | 35 | 0x41, 0x22, 0x14, 0x08, 0x00,// > |
hapoo | 0:0cc7719c6d87 | 36 | 0x02, 0x01, 0x51, 0x09, 0x06,// ? |
hapoo | 0:0cc7719c6d87 | 37 | 0x32, 0x49, 0x79, 0x41, 0x3E,// @ |
hapoo | 0:0cc7719c6d87 | 38 | 0x7E, 0x11, 0x11, 0x11, 0x7E,// A |
hapoo | 0:0cc7719c6d87 | 39 | 0x7F, 0x49, 0x49, 0x49, 0x36,// B |
hapoo | 0:0cc7719c6d87 | 40 | 0x3E, 0x41, 0x41, 0x41, 0x22,// C |
hapoo | 0:0cc7719c6d87 | 41 | 0x7F, 0x41, 0x41, 0x22, 0x1C,// D |
hapoo | 0:0cc7719c6d87 | 42 | 0x7F, 0x49, 0x49, 0x49, 0x41,// E |
hapoo | 0:0cc7719c6d87 | 43 | 0x7F, 0x09, 0x09, 0x01, 0x01,// F |
hapoo | 0:0cc7719c6d87 | 44 | 0x3E, 0x41, 0x41, 0x51, 0x32,// G |
hapoo | 0:0cc7719c6d87 | 45 | 0x7F, 0x08, 0x08, 0x08, 0x7F,// H |
hapoo | 0:0cc7719c6d87 | 46 | 0x00, 0x41, 0x7F, 0x41, 0x00,// I |
hapoo | 0:0cc7719c6d87 | 47 | 0x20, 0x40, 0x41, 0x3F, 0x01,// J |
hapoo | 0:0cc7719c6d87 | 48 | 0x7F, 0x08, 0x14, 0x22, 0x41,// K |
hapoo | 0:0cc7719c6d87 | 49 | 0x7F, 0x40, 0x40, 0x40, 0x40,// L |
hapoo | 0:0cc7719c6d87 | 50 | 0x7F, 0x02, 0x04, 0x02, 0x7F,// M |
hapoo | 0:0cc7719c6d87 | 51 | 0x7F, 0x04, 0x08, 0x10, 0x7F,// N |
hapoo | 0:0cc7719c6d87 | 52 | 0x3E, 0x41, 0x41, 0x41, 0x3E,// O |
hapoo | 0:0cc7719c6d87 | 53 | 0x7F, 0x09, 0x09, 0x09, 0x06,// P |
hapoo | 0:0cc7719c6d87 | 54 | 0x3E, 0x41, 0x51, 0x21, 0x5E,// Q |
hapoo | 0:0cc7719c6d87 | 55 | 0x7F, 0x09, 0x19, 0x29, 0x46,// R |
hapoo | 0:0cc7719c6d87 | 56 | 0x46, 0x49, 0x49, 0x49, 0x31,// S |
hapoo | 0:0cc7719c6d87 | 57 | 0x01, 0x01, 0x7F, 0x01, 0x01,// T |
hapoo | 0:0cc7719c6d87 | 58 | 0x3F, 0x40, 0x40, 0x40, 0x3F,// U |
hapoo | 0:0cc7719c6d87 | 59 | 0x1F, 0x20, 0x40, 0x20, 0x1F,// V |
hapoo | 0:0cc7719c6d87 | 60 | 0x7F, 0x20, 0x18, 0x20, 0x7F,// W |
hapoo | 0:0cc7719c6d87 | 61 | 0x63, 0x14, 0x08, 0x14, 0x63,// X |
hapoo | 0:0cc7719c6d87 | 62 | 0x03, 0x04, 0x78, 0x04, 0x03,// Y |
hapoo | 0:0cc7719c6d87 | 63 | 0x61, 0x51, 0x49, 0x45, 0x43,// Z |
hapoo | 0:0cc7719c6d87 | 64 | 0x00, 0x00, 0x7F, 0x41, 0x41,// [ |
hapoo | 0:0cc7719c6d87 | 65 | 0x02, 0x04, 0x08, 0x10, 0x20,// "\" |
hapoo | 0:0cc7719c6d87 | 66 | 0x41, 0x41, 0x7F, 0x00, 0x00,// ] |
hapoo | 0:0cc7719c6d87 | 67 | 0x04, 0x02, 0x01, 0x02, 0x04,// ^ |
hapoo | 0:0cc7719c6d87 | 68 | 0x40, 0x40, 0x40, 0x40, 0x40,// _ |
hapoo | 0:0cc7719c6d87 | 69 | 0x00, 0x01, 0x02, 0x04, 0x00,// ` |
hapoo | 0:0cc7719c6d87 | 70 | 0x20, 0x54, 0x54, 0x54, 0x78,// a |
hapoo | 0:0cc7719c6d87 | 71 | 0x7F, 0x48, 0x44, 0x44, 0x38,// b |
hapoo | 0:0cc7719c6d87 | 72 | 0x38, 0x44, 0x44, 0x44, 0x20,// c |
hapoo | 0:0cc7719c6d87 | 73 | 0x38, 0x44, 0x44, 0x48, 0x7F,// d |
hapoo | 0:0cc7719c6d87 | 74 | 0x38, 0x54, 0x54, 0x54, 0x18,// e |
hapoo | 0:0cc7719c6d87 | 75 | 0x08, 0x7E, 0x09, 0x01, 0x02,// f |
hapoo | 0:0cc7719c6d87 | 76 | 0x08, 0x14, 0x54, 0x54, 0x3C,// g |
hapoo | 0:0cc7719c6d87 | 77 | 0x7F, 0x08, 0x04, 0x04, 0x78,// h |
hapoo | 0:0cc7719c6d87 | 78 | 0x00, 0x44, 0x7D, 0x40, 0x00,// i |
hapoo | 0:0cc7719c6d87 | 79 | 0x20, 0x40, 0x44, 0x3D, 0x00,// j |
hapoo | 0:0cc7719c6d87 | 80 | 0x00, 0x7F, 0x10, 0x28, 0x44,// k |
hapoo | 0:0cc7719c6d87 | 81 | 0x00, 0x41, 0x7F, 0x40, 0x00,// l |
hapoo | 0:0cc7719c6d87 | 82 | 0x7C, 0x04, 0x18, 0x04, 0x78,// m |
hapoo | 0:0cc7719c6d87 | 83 | 0x7C, 0x08, 0x04, 0x04, 0x78,// n |
hapoo | 0:0cc7719c6d87 | 84 | 0x38, 0x44, 0x44, 0x44, 0x38,// o |
hapoo | 0:0cc7719c6d87 | 85 | 0x7C, 0x14, 0x14, 0x14, 0x08,// p |
hapoo | 0:0cc7719c6d87 | 86 | 0x08, 0x14, 0x14, 0x18, 0x7C,// q |
hapoo | 0:0cc7719c6d87 | 87 | 0x7C, 0x08, 0x04, 0x04, 0x08,// r |
hapoo | 0:0cc7719c6d87 | 88 | 0x48, 0x54, 0x54, 0x54, 0x20,// s |
hapoo | 0:0cc7719c6d87 | 89 | 0x04, 0x3F, 0x44, 0x40, 0x20,// t |
hapoo | 0:0cc7719c6d87 | 90 | 0x3C, 0x40, 0x40, 0x20, 0x7C,// u |
hapoo | 0:0cc7719c6d87 | 91 | 0x1C, 0x20, 0x40, 0x20, 0x1C,// v |
hapoo | 0:0cc7719c6d87 | 92 | 0x3C, 0x40, 0x30, 0x40, 0x3C,// w |
hapoo | 0:0cc7719c6d87 | 93 | 0x44, 0x28, 0x10, 0x28, 0x44,// x |
hapoo | 0:0cc7719c6d87 | 94 | 0x0C, 0x50, 0x50, 0x50, 0x3C,// y |
hapoo | 0:0cc7719c6d87 | 95 | 0x44, 0x64, 0x54, 0x4C, 0x44,// z |
hapoo | 0:0cc7719c6d87 | 96 | 0x00, 0x08, 0x36, 0x41, 0x00,// { |
hapoo | 0:0cc7719c6d87 | 97 | 0x00, 0x00, 0x7F, 0x00, 0x00,// | |
hapoo | 0:0cc7719c6d87 | 98 | 0x00, 0x41, 0x36, 0x08, 0x00,// } |
hapoo | 0:0cc7719c6d87 | 99 | 0x08, 0x08, 0x2A, 0x1C, 0x08,// -> |
hapoo | 0:0cc7719c6d87 | 100 | 0x08, 0x1C, 0x2A, 0x08, 0x08 // <- |
hapoo | 0:0cc7719c6d87 | 101 | }; |
hapoo | 0:0cc7719c6d87 | 102 | #endif |