Simple library for UC1701 based GLCD's

Dependents:   Opensmart_LCD_UC1701

With lots of fonts! Will include more in the future. A couple bitmaps have also been added.

Committer:
Anaesthetix
Date:
Sun Dec 18 21:10:26 2016 +0000
Revision:
0:a8cfaf48d064
Optimized for execution speed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anaesthetix 0:a8cfaf48d064 1 #ifndef FONT8x8_H
Anaesthetix 0:a8cfaf48d064 2 #define FONT8x8_H
Anaesthetix 0:a8cfaf48d064 3
Anaesthetix 0:a8cfaf48d064 4 /* File '8X8.FV' as include
Anaesthetix 0:a8cfaf48d064 5 * The font was generated with EA FontEditor. Please contact ELECTRONIC ASSEMBLY
Anaesthetix 0:a8cfaf48d064 6 * for more details (techik@lcd-module.de)
Anaesthetix 0:a8cfaf48d064 7 *
Anaesthetix 0:a8cfaf48d064 8 * TAB 6/22/2015 - Modified for mbed compiler
Anaesthetix 0:a8cfaf48d064 9 *
Anaesthetix 0:a8cfaf48d064 10 * The array starts with a 8 byte header:
Anaesthetix 0:a8cfaf48d064 11 * 1st Byte: 'F' first 2 bytes are always FV
Anaesthetix 0:a8cfaf48d064 12 * 2nd Byte: 'V' for FONT VERTICAL
Anaesthetix 0:a8cfaf48d064 13 * 3rd Byte: First code to define
Anaesthetix 0:a8cfaf48d064 14 * 4th Byte: Last code to define
Anaesthetix 0:a8cfaf48d064 15 * 5th Byte: Width of character in dots
Anaesthetix 0:a8cfaf48d064 16 * 6th Byte: Height of character in dots
Anaesthetix 0:a8cfaf48d064 17 * 7th Byte: Height of character in bytes
Anaesthetix 0:a8cfaf48d064 18 * 8th Byte: Bytes needed for each character (1..255)
Anaesthetix 0:a8cfaf48d064 19 * or 0 for big fonts calculate WidthInDots * HeightInBytes
Anaesthetix 0:a8cfaf48d064 20 * After that font data will follow
Anaesthetix 0:a8cfaf48d064 21 */
Anaesthetix 0:a8cfaf48d064 22
Anaesthetix 0:a8cfaf48d064 23 #define FONT_8X8_LEN 776
Anaesthetix 0:a8cfaf48d064 24
Anaesthetix 0:a8cfaf48d064 25 const char font_8x8[FONT_8X8_LEN] =
Anaesthetix 0:a8cfaf48d064 26 {
Anaesthetix 0:a8cfaf48d064 27 70, 86, 32,127, 8, 8, 1, 8,
Anaesthetix 0:a8cfaf48d064 28 0, 0, 0, 0, 0, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 29 0, 0, 0, 95, 95, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 30 0, 7, 7, 0, 0, 7, 7, 0,
Anaesthetix 0:a8cfaf48d064 31 36,126,126, 36,126,126, 36, 0,
Anaesthetix 0:a8cfaf48d064 32 0, 36, 46,107,107, 58, 18, 0,
Anaesthetix 0:a8cfaf48d064 33 0,102, 54, 24, 12,102, 98, 0,
Anaesthetix 0:a8cfaf48d064 34 48,122, 79, 93, 55,114, 80, 0,
Anaesthetix 0:a8cfaf48d064 35 0, 0, 0, 7, 7, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 36 0, 0, 0, 62,127, 99, 65, 0,
Anaesthetix 0:a8cfaf48d064 37 0, 65, 99,127, 62, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 38 8, 42, 62, 28, 28, 62, 42, 8,
Anaesthetix 0:a8cfaf48d064 39 0, 8, 8, 62, 62, 8, 8, 0,
Anaesthetix 0:a8cfaf48d064 40 0,128,224, 96, 0, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 41 0, 8, 8, 8, 8, 8, 8, 0,
Anaesthetix 0:a8cfaf48d064 42 0, 0, 0, 96, 96, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 43 0, 96, 48, 24, 12, 6, 3, 0,
Anaesthetix 0:a8cfaf48d064 44 0, 62,127, 73, 69,127, 62, 0,
Anaesthetix 0:a8cfaf48d064 45 0, 64, 66,127,127, 64, 64, 0,
Anaesthetix 0:a8cfaf48d064 46 0, 66, 99,113, 89, 79, 70, 0,
Anaesthetix 0:a8cfaf48d064 47 0, 33, 97, 69, 79,123, 49, 0,
Anaesthetix 0:a8cfaf48d064 48 0, 24, 28, 22,127,127, 16, 0,
Anaesthetix 0:a8cfaf48d064 49 0, 39,103, 69, 69,125, 57, 0,
Anaesthetix 0:a8cfaf48d064 50 0, 62,127, 73, 73,121, 48, 0,
Anaesthetix 0:a8cfaf48d064 51 0, 1,113,121, 13, 7, 3, 0,
Anaesthetix 0:a8cfaf48d064 52 0, 54,127, 73, 73,127, 54, 0,
Anaesthetix 0:a8cfaf48d064 53 0, 6, 79, 73,105, 63, 30, 0,
Anaesthetix 0:a8cfaf48d064 54 0, 0, 0, 54, 54, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 55 0, 0, 64,118, 54, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 56 0, 0, 8, 28, 54, 99, 65, 0,
Anaesthetix 0:a8cfaf48d064 57 0, 36, 36, 36, 36, 36, 36, 0,
Anaesthetix 0:a8cfaf48d064 58 0, 65, 99, 54, 28, 8, 0, 0,
Anaesthetix 0:a8cfaf48d064 59 0, 2, 3, 81, 89, 15, 6, 0,
Anaesthetix 0:a8cfaf48d064 60 0, 62,127, 65, 93, 87, 94, 0,
Anaesthetix 0:a8cfaf48d064 61 0,124,126, 19, 19,126,124, 0,
Anaesthetix 0:a8cfaf48d064 62 0,127,127, 73, 73,127, 54, 0,
Anaesthetix 0:a8cfaf48d064 63 0, 62,127, 65, 65, 99, 34, 0,
Anaesthetix 0:a8cfaf48d064 64 0,127,127, 65, 99, 62, 28, 0,
Anaesthetix 0:a8cfaf48d064 65 0,127,127, 73, 73, 73, 65, 0,
Anaesthetix 0:a8cfaf48d064 66 0,127,127, 9, 9, 9, 1, 0,
Anaesthetix 0:a8cfaf48d064 67 0, 62,127, 65, 73,121,121, 0,
Anaesthetix 0:a8cfaf48d064 68 0,127,127, 8, 8,127,127, 0,
Anaesthetix 0:a8cfaf48d064 69 0, 0, 65,127,127, 65, 0, 0,
Anaesthetix 0:a8cfaf48d064 70 0, 32, 96, 64, 64,127, 63, 0,
Anaesthetix 0:a8cfaf48d064 71 0,127,127, 28, 54, 99, 65, 0,
Anaesthetix 0:a8cfaf48d064 72 0,127,127, 64, 64, 64, 64, 0,
Anaesthetix 0:a8cfaf48d064 73 127,127, 6, 12, 6,127,127, 0,
Anaesthetix 0:a8cfaf48d064 74 0,127,127, 14, 28,127,127, 0,
Anaesthetix 0:a8cfaf48d064 75 0, 62,127, 65, 65,127, 62, 0,
Anaesthetix 0:a8cfaf48d064 76 0,127,127, 9, 9, 15, 6, 0,
Anaesthetix 0:a8cfaf48d064 77 0, 62,127, 81, 33,127, 94, 0,
Anaesthetix 0:a8cfaf48d064 78 0,127,127, 9, 25,127,102, 0,
Anaesthetix 0:a8cfaf48d064 79 0, 38,111, 73, 73,123, 50, 0,
Anaesthetix 0:a8cfaf48d064 80 0, 1, 1,127,127, 1, 1, 0,
Anaesthetix 0:a8cfaf48d064 81 0, 63,127, 64, 64,127,127, 0,
Anaesthetix 0:a8cfaf48d064 82 0, 31, 63, 96, 96, 63, 31, 0,
Anaesthetix 0:a8cfaf48d064 83 127,127, 48, 24, 48,127,127, 0,
Anaesthetix 0:a8cfaf48d064 84 0, 99,119, 28, 28,119, 99, 0,
Anaesthetix 0:a8cfaf48d064 85 0, 7, 15,120,120, 15, 7, 0,
Anaesthetix 0:a8cfaf48d064 86 0, 97,113, 89, 77, 71, 67, 0,
Anaesthetix 0:a8cfaf48d064 87 0, 0, 0,127,127, 65, 65, 0,
Anaesthetix 0:a8cfaf48d064 88 0, 3, 6, 12, 24, 48, 96, 0,
Anaesthetix 0:a8cfaf48d064 89 0, 65, 65,127,127, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 90 8, 12, 6, 3, 6, 12, 8, 0,
Anaesthetix 0:a8cfaf48d064 91 64, 64, 64, 64, 64, 64, 64, 0,
Anaesthetix 0:a8cfaf48d064 92 2, 6, 12, 8, 0, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 93 0, 32,116, 84, 84,124,120, 0,
Anaesthetix 0:a8cfaf48d064 94 0,127,127, 68, 68,124, 56, 0,
Anaesthetix 0:a8cfaf48d064 95 0, 56,124, 68, 68, 68, 0, 0,
Anaesthetix 0:a8cfaf48d064 96 0, 56,124, 68, 68,127,127, 0,
Anaesthetix 0:a8cfaf48d064 97 0, 56,124, 84, 84, 92, 24, 0,
Anaesthetix 0:a8cfaf48d064 98 0, 4,126,127, 5, 5, 0, 0,
Anaesthetix 0:a8cfaf48d064 99 0,152,188,164,164,252,124, 0,
Anaesthetix 0:a8cfaf48d064 100 0,127,127, 4, 4,124,120, 0,
Anaesthetix 0:a8cfaf48d064 101 0, 0, 68,125,125, 64, 0, 0,
Anaesthetix 0:a8cfaf48d064 102 0,128,128,253,125, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 103 0,127,127, 16, 56,108, 68, 0,
Anaesthetix 0:a8cfaf48d064 104 0, 0, 65,127,127, 64, 0, 0,
Anaesthetix 0:a8cfaf48d064 105 124,124, 12, 24, 12,124,120, 0,
Anaesthetix 0:a8cfaf48d064 106 0,124,124, 4, 4,124,120, 0,
Anaesthetix 0:a8cfaf48d064 107 0, 56,124, 68, 68,124, 56, 0,
Anaesthetix 0:a8cfaf48d064 108 0,252,252, 68, 68,124, 56, 0,
Anaesthetix 0:a8cfaf48d064 109 0, 56,124, 68, 68,252,252, 0,
Anaesthetix 0:a8cfaf48d064 110 0,124,124, 4, 4, 12, 8, 0,
Anaesthetix 0:a8cfaf48d064 111 0, 72, 92, 84, 84,116, 36, 0,
Anaesthetix 0:a8cfaf48d064 112 0, 4, 4, 62,126, 68, 68, 0,
Anaesthetix 0:a8cfaf48d064 113 0, 60,124, 64, 64,124,124, 0,
Anaesthetix 0:a8cfaf48d064 114 0, 28, 60, 96, 96, 60, 28, 0,
Anaesthetix 0:a8cfaf48d064 115 28,124, 96, 48, 96,124, 28, 0,
Anaesthetix 0:a8cfaf48d064 116 0, 68,108, 56, 56,108, 68, 0,
Anaesthetix 0:a8cfaf48d064 117 0,156,188,160,160,252,124, 0,
Anaesthetix 0:a8cfaf48d064 118 0, 68,100,116, 92, 76, 68, 0,
Anaesthetix 0:a8cfaf48d064 119 0, 0, 8, 62,119, 65, 65, 0,
Anaesthetix 0:a8cfaf48d064 120 0, 0, 0,255,255, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 121 0, 65, 65,119, 62, 8, 0, 0,
Anaesthetix 0:a8cfaf48d064 122 12, 6, 6, 12, 24, 24, 12, 0,
Anaesthetix 0:a8cfaf48d064 123 0, 96,120, 94, 70, 88, 96, 0
Anaesthetix 0:a8cfaf48d064 124 };
Anaesthetix 0:a8cfaf48d064 125
Anaesthetix 0:a8cfaf48d064 126 #endif