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:
Mon Dec 19 23:26:17 2016 +0000
Revision:
5:7494bdca926b
Parent:
0:a8cfaf48d064
Added basic drawing functions + buffered versions. More will come soon. Has a minor bug with postioning

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anaesthetix 0:a8cfaf48d064 1 #ifndef __FONT68_H__
Anaesthetix 0:a8cfaf48d064 2 #define __FONT68_H__
Anaesthetix 0:a8cfaf48d064 3
Anaesthetix 0:a8cfaf48d064 4 /* File '6X8.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_6X8_LEN 584
Anaesthetix 0:a8cfaf48d064 24
Anaesthetix 0:a8cfaf48d064 25 const char font_6x8[FONT_6X8_LEN] =
Anaesthetix 0:a8cfaf48d064 26 {
Anaesthetix 0:a8cfaf48d064 27 70, 86, 32,127, 6, 8, 1, 6,
Anaesthetix 0:a8cfaf48d064 28 0, 0, 0, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 29 0, 0, 95, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 30 0, 7, 0, 7, 0, 0,
Anaesthetix 0:a8cfaf48d064 31 20,127, 20,127, 20, 0,
Anaesthetix 0:a8cfaf48d064 32 36, 42,127, 42, 18, 0,
Anaesthetix 0:a8cfaf48d064 33 35, 19, 8,100, 98, 0,
Anaesthetix 0:a8cfaf48d064 34 54, 73, 86, 32, 80, 0,
Anaesthetix 0:a8cfaf48d064 35 0, 8, 7, 3, 0, 0,
Anaesthetix 0:a8cfaf48d064 36 0, 28, 34, 65, 0, 0,
Anaesthetix 0:a8cfaf48d064 37 0, 65, 34, 28, 0, 0,
Anaesthetix 0:a8cfaf48d064 38 42, 28,127, 28, 42, 0,
Anaesthetix 0:a8cfaf48d064 39 8, 8, 62, 8, 8, 0,
Anaesthetix 0:a8cfaf48d064 40 0,128,112, 48, 0, 0,
Anaesthetix 0:a8cfaf48d064 41 8, 8, 8, 8, 8, 0,
Anaesthetix 0:a8cfaf48d064 42 0, 0, 96, 96, 0, 0,
Anaesthetix 0:a8cfaf48d064 43 32, 16, 8, 4, 2, 0,
Anaesthetix 0:a8cfaf48d064 44 62, 81, 73, 69, 62, 0,
Anaesthetix 0:a8cfaf48d064 45 0, 66,127, 64, 0, 0,
Anaesthetix 0:a8cfaf48d064 46 66, 97, 81, 73, 70, 0,
Anaesthetix 0:a8cfaf48d064 47 33, 65, 73, 77, 51, 0,
Anaesthetix 0:a8cfaf48d064 48 24, 20, 18,127, 16, 0,
Anaesthetix 0:a8cfaf48d064 49 39, 69, 69, 69, 57, 0,
Anaesthetix 0:a8cfaf48d064 50 60, 74, 73, 73, 48, 0,
Anaesthetix 0:a8cfaf48d064 51 65, 33, 17, 9, 7, 0,
Anaesthetix 0:a8cfaf48d064 52 54, 73, 73, 73, 54, 0,
Anaesthetix 0:a8cfaf48d064 53 6, 73, 73, 41, 30, 0,
Anaesthetix 0:a8cfaf48d064 54 0, 0, 20, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 55 0, 64, 52, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 56 0, 8, 20, 34, 65, 0,
Anaesthetix 0:a8cfaf48d064 57 20, 20, 20, 20, 20, 0,
Anaesthetix 0:a8cfaf48d064 58 0, 65, 34, 20, 8, 0,
Anaesthetix 0:a8cfaf48d064 59 2, 1, 81, 9, 6, 0,
Anaesthetix 0:a8cfaf48d064 60 62, 65, 93, 89, 78, 0,
Anaesthetix 0:a8cfaf48d064 61 124, 18, 17, 18,124, 0,
Anaesthetix 0:a8cfaf48d064 62 127, 73, 73, 73, 54, 0,
Anaesthetix 0:a8cfaf48d064 63 62, 65, 65, 65, 34, 0,
Anaesthetix 0:a8cfaf48d064 64 127, 65, 65, 65, 62, 0,
Anaesthetix 0:a8cfaf48d064 65 127, 73, 73, 73, 65, 0,
Anaesthetix 0:a8cfaf48d064 66 127, 9, 9, 9, 1, 0,
Anaesthetix 0:a8cfaf48d064 67 62, 65, 73, 73,122, 0,
Anaesthetix 0:a8cfaf48d064 68 127, 8, 8, 8,127, 0,
Anaesthetix 0:a8cfaf48d064 69 0, 65,127, 65, 0, 0,
Anaesthetix 0:a8cfaf48d064 70 32, 64, 65, 63, 1, 0,
Anaesthetix 0:a8cfaf48d064 71 127, 8, 20, 34, 65, 0,
Anaesthetix 0:a8cfaf48d064 72 127, 64, 64, 64, 64, 0,
Anaesthetix 0:a8cfaf48d064 73 127, 2, 28, 2,127, 0,
Anaesthetix 0:a8cfaf48d064 74 127, 4, 8, 16,127, 0,
Anaesthetix 0:a8cfaf48d064 75 62, 65, 65, 65, 62, 0,
Anaesthetix 0:a8cfaf48d064 76 127, 9, 9, 9, 6, 0,
Anaesthetix 0:a8cfaf48d064 77 62, 65, 81, 33, 94, 0,
Anaesthetix 0:a8cfaf48d064 78 127, 9, 25, 41, 70, 0,
Anaesthetix 0:a8cfaf48d064 79 38, 73, 73, 73, 50, 0,
Anaesthetix 0:a8cfaf48d064 80 1, 1,127, 1, 1, 0,
Anaesthetix 0:a8cfaf48d064 81 63, 64, 64, 64, 63, 0,
Anaesthetix 0:a8cfaf48d064 82 31, 32, 64, 32, 31, 0,
Anaesthetix 0:a8cfaf48d064 83 63, 64, 56, 64, 63, 0,
Anaesthetix 0:a8cfaf48d064 84 99, 20, 8, 20, 99, 0,
Anaesthetix 0:a8cfaf48d064 85 3, 4,120, 4, 3, 0,
Anaesthetix 0:a8cfaf48d064 86 97, 81, 73, 69, 67, 0,
Anaesthetix 0:a8cfaf48d064 87 0,127, 65, 65, 65, 0,
Anaesthetix 0:a8cfaf48d064 88 2, 4, 8, 16, 32, 0,
Anaesthetix 0:a8cfaf48d064 89 0, 65, 65, 65,127, 0,
Anaesthetix 0:a8cfaf48d064 90 4, 2, 1, 2, 4, 0,
Anaesthetix 0:a8cfaf48d064 91 64, 64, 64, 64, 64, 0,
Anaesthetix 0:a8cfaf48d064 92 0, 3, 7, 8, 0, 0,
Anaesthetix 0:a8cfaf48d064 93 32, 84, 84, 84,120, 0,
Anaesthetix 0:a8cfaf48d064 94 127, 40, 68, 68, 56, 0,
Anaesthetix 0:a8cfaf48d064 95 56, 68, 68, 68, 40, 0,
Anaesthetix 0:a8cfaf48d064 96 56, 68, 68, 40,127, 0,
Anaesthetix 0:a8cfaf48d064 97 56, 84, 84, 84, 24, 0,
Anaesthetix 0:a8cfaf48d064 98 0, 8,126, 9, 2, 0,
Anaesthetix 0:a8cfaf48d064 99 24,164,164,164,124, 0,
Anaesthetix 0:a8cfaf48d064 100 127, 8, 4, 4,120, 0,
Anaesthetix 0:a8cfaf48d064 101 0, 68,125, 64, 0, 0,
Anaesthetix 0:a8cfaf48d064 102 32, 64, 64, 61, 0, 0,
Anaesthetix 0:a8cfaf48d064 103 127, 16, 40, 68, 0, 0,
Anaesthetix 0:a8cfaf48d064 104 0, 65,127, 64, 0, 0,
Anaesthetix 0:a8cfaf48d064 105 124, 4,120, 4,120, 0,
Anaesthetix 0:a8cfaf48d064 106 124, 8, 4, 4,120, 0,
Anaesthetix 0:a8cfaf48d064 107 56, 68, 68, 68, 56, 0,
Anaesthetix 0:a8cfaf48d064 108 252, 24, 36, 36, 24, 0,
Anaesthetix 0:a8cfaf48d064 109 24, 36, 36, 24,252, 0,
Anaesthetix 0:a8cfaf48d064 110 124, 8, 4, 4, 8, 0,
Anaesthetix 0:a8cfaf48d064 111 72, 84, 84, 84, 36, 0,
Anaesthetix 0:a8cfaf48d064 112 4, 4, 63, 68, 36, 0,
Anaesthetix 0:a8cfaf48d064 113 60, 64, 64, 32,124, 0,
Anaesthetix 0:a8cfaf48d064 114 28, 32, 64, 32, 28, 0,
Anaesthetix 0:a8cfaf48d064 115 60, 64, 48, 64, 60, 0,
Anaesthetix 0:a8cfaf48d064 116 68, 40, 16, 40, 68, 0,
Anaesthetix 0:a8cfaf48d064 117 76,144,144,144,124, 0,
Anaesthetix 0:a8cfaf48d064 118 68,100, 84, 76, 68, 0,
Anaesthetix 0:a8cfaf48d064 119 0, 8, 54, 65, 0, 0,
Anaesthetix 0:a8cfaf48d064 120 0, 0,119, 0, 0, 0,
Anaesthetix 0:a8cfaf48d064 121 0, 65, 54, 8, 0, 0,
Anaesthetix 0:a8cfaf48d064 122 2, 1, 2, 4, 2, 0,
Anaesthetix 0:a8cfaf48d064 123 60, 38, 35, 38, 60, 0
Anaesthetix 0:a8cfaf48d064 124 };
Anaesthetix 0:a8cfaf48d064 125
Anaesthetix 0:a8cfaf48d064 126 #endif