A simple library for SSH1106 controlled GLCDs
Embed:
(wiki syntax)
Show/hide line numbers
font_4x5.h
00001 ; 00002 00003 /* The array starts with a 8 byte header: 00004 * 1st Byte: 'F' first 2 bytes are always FV 00005 * 2nd Byte: 'V' for FONT VERTICAL 00006 * 3rd Byte: First code to define 00007 * 4th Byte: Last code to define 00008 * 5th Byte: Width of character in dots 00009 * 6th Byte: Height of character in dots 00010 * 7th Byte: Height of character in bytes 00011 * 8th Byte: Bytes needed for each character (1..255) 00012 * or 0 for big fonts calculate WidthInDots * HeightInBytes 00013 * After that font data will follow 00014 */ 00015 00016 const char font_4x5[] = { 00017 70, 86, 32,127, 4, 5, 1, 4, 00018 0x00,0x00,0x00,0x00, // 00019 0x00,0x2e,0x00,0x00, // ! 00020 0x06,0x00,0x06,0x00, // " 00021 0x3e,0x14,0x3e,0x00, // # 00022 0x0c,0x36,0x18,0x00, // $ 00023 0x32,0x08,0x26,0x00, // % 00024 0x14,0x2a,0x34,0x00, // & 00025 0x00,0x06,0x00,0x00, // ' 00026 0x00,0x1c,0x22,0x00, // ( 00027 0x22,0x1c,0x00,0x00, // ) 00028 0x14,0x08,0x14,0x00, // * 00029 0x08,0x1c,0x08,0x00, // + 00030 0x40,0x60,0x00,0x00, // , 00031 0x08,0x08,0x08,0x00, // - 00032 0x00,0x20,0x00,0x00, // . 00033 0x60,0x1c,0x02,0x00, // / 00034 0x3e,0x22,0x3e,0x00, // 0 00035 0x24,0x3e,0x20,0x00, // 1 00036 0x32,0x2a,0x26,0x00, // 2 00037 0x22,0x2a,0x3e,0x00, // 3 00038 0x0e,0x08,0x3e,0x00, // 4 00039 0x2e,0x2a,0x3a,0x00, // 5 00040 0x3e,0x2a,0x3a,0x00, // 6 00041 0x02,0x3a,0x06,0x00, // 7 00042 0x3e,0x2a,0x3e,0x00, // 8 00043 0x2e,0x2a,0x3e,0x00, // 9 00044 0x00,0x14,0x00,0x00, // : 00045 0x40,0x64,0x00,0x00, // ; 00046 0x08,0x14,0x22,0x00, // < 00047 0x14,0x14,0x14,0x00, // = 00048 0x22,0x14,0x08,0x00, // > 00049 0x02,0x2a,0x06,0x00, // ? 00050 0x3e,0x22,0x2e,0x00, // @ 00051 0x3e,0x0a,0x3e,0x00, // A 00052 0x3e,0x2a,0x36,0x00, // B 00053 0x3e,0x22,0x22,0x00, // C 00054 0x3e,0x22,0x1c,0x00, // D 00055 0x3e,0x2a,0x22,0x00, // E 00056 0x3e,0x0a,0x02,0x00, // F 00057 0x3e,0x22,0x3a,0x00, // G 00058 0x3e,0x08,0x3e,0x00, // H 00059 0x22,0x3e,0x22,0x00, // I 00060 0x30,0x20,0x3e,0x00, // J 00061 0x3e,0x08,0x36,0x00, // K 00062 0x3e,0x20,0x20,0x00, // L 00063 0x3e,0x04,0x3e,0x00, // M 00064 0x3c,0x08,0x1e,0x00, // N 00065 0x3e,0x22,0x3e,0x00, // O 00066 0x3e,0x0a,0x0e,0x00, // P 00067 0x3e,0x22,0x7e,0x00, // Q 00068 0x3e,0x0a,0x34,0x00, // R 00069 0x2e,0x2a,0x3a,0x00, // S 00070 0x02,0x3e,0x02,0x00, // T 00071 0x3e,0x20,0x3e,0x00, // U 00072 0x1e,0x20,0x1e,0x00, // V 00073 0x3e,0x10,0x3e,0x00, // W 00074 0x36,0x08,0x36,0x00, // X 00075 0x06,0x38,0x06,0x00, // Y 00076 0x32,0x2a,0x26,0x00, // Z 00077 0x00,0x3e,0x22,0x00, // [ 00078 0x02,0x1c,0x60,0x00, // "\" 00079 0x22,0x3e,0x00,0x00, // ] 00080 0x04,0x02,0x04,0x00, // ^ 00081 0x40,0x40,0x40,0x00, // _ 00082 0x00,0x02,0x00,0x00, // ` 00083 0x3e,0x0a,0x3e,0x00, // a 00084 0x3e,0x2a,0x36,0x00, // b 00085 0x3e,0x22,0x22,0x00, // c 00086 0x3e,0x22,0x1c,0x00, // d 00087 0x3e,0x2a,0x22,0x00, // e 00088 0x3e,0x0a,0x02,0x00, // f 00089 0x3e,0x22,0x3a,0x00, // g 00090 0x3e,0x08,0x3e,0x00, // h 00091 0x22,0x3e,0x22,0x00, // i 00092 0x30,0x20,0x3e,0x00, // j 00093 0x3e,0x08,0x36,0x00, // k 00094 0x3e,0x20,0x20,0x00, // l 00095 0x3e,0x04,0x3e,0x00, // m 00096 0x3c,0x08,0x1e,0x00, // n 00097 0x3e,0x22,0x3e,0x00, // o 00098 0x3e,0x0a,0x0e,0x00, // p 00099 0x3e,0x22,0x7e,0x00, // q 00100 0x3e,0x0a,0x34,0x00, // r 00101 0x2e,0x2a,0x3a,0x00, // s 00102 0x02,0x3e,0x02,0x00, // t 00103 0x3e,0x20,0x3e,0x00, // u 00104 0x1e,0x20,0x1e,0x00, // v 00105 0x3e,0x10,0x3e,0x00, // w 00106 0x36,0x08,0x36,0x00, // x 00107 0x06,0x38,0x06,0x00, // y 00108 0x32,0x2a,0x26,0x00, // z 00109 0x08,0x3e,0x22,0x00, // { 00110 0x00,0x7e,0x00,0x00, // | 00111 0x22,0x3e,0x08,0x00, // } 00112 0x02,0x06,0x04,0x00, // ~ 00113 0x00,0x00,0x00,0x00 00114 };
Generated on Wed Jul 20 2022 17:31:59 by 1.7.2