Basically i glued Peter Drescher and Simon Ford libs in a GraphicsDisplay class, then derived TFT or LCD class (which inherits Protocols class), then the most derived ones (Inits), which are per-display and are the only part needed to be adapted to diff hw.

Fork of UniGraphic by GraphicsDisplay

Committer:
Geremia
Date:
Sat Feb 14 17:42:21 2015 +0000
Revision:
3:48f3282c2be8
Parent:
0:75ec1b3cde17
small things

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Geremia 0:75ec1b3cde17 1 //Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
Geremia 0:75ec1b3cde17 2 //MikroElektronika 2011
Geremia 0:75ec1b3cde17 3 //http://www.mikroe.com
Geremia 0:75ec1b3cde17 4
Geremia 0:75ec1b3cde17 5 //GLCD FontName : Terminal6x8
Geremia 0:75ec1b3cde17 6 //GLCD FontSize : 6 x 8
Geremia 0:75ec1b3cde17 7 __align(2)
Geremia 0:75ec1b3cde17 8 const unsigned char Terminal6x8[] = {
Geremia 3:48f3282c2be8 9 0xFF/*unused*/,6,8,0xFF/*unused*/,
Geremia 0:75ec1b3cde17 10 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Code for char
Geremia 0:75ec1b3cde17 11 0x05, 0x00, 0x00, 0x06, 0x5F, 0x06, 0x00, // Code for char !
Geremia 0:75ec1b3cde17 12 0x06, 0x00, 0x07, 0x03, 0x00, 0x07, 0x03, // Code for char "
Geremia 0:75ec1b3cde17 13 0x06, 0x00, 0x24, 0x7E, 0x24, 0x7E, 0x24, // Code for char #
Geremia 0:75ec1b3cde17 14 0x05, 0x00, 0x24, 0x2B, 0x6A, 0x12, 0x00, // Code for char $
Geremia 0:75ec1b3cde17 15 0x06, 0x00, 0x63, 0x13, 0x08, 0x64, 0x63, // Code for char %
Geremia 0:75ec1b3cde17 16 0x06, 0x00, 0x36, 0x49, 0x56, 0x20, 0x50, // Code for char &
Geremia 0:75ec1b3cde17 17 0x04, 0x00, 0x00, 0x07, 0x03, 0x00, 0x00, // Code for char '
Geremia 0:75ec1b3cde17 18 0x04, 0x00, 0x00, 0x3E, 0x41, 0x00, 0x00, // Code for char (
Geremia 0:75ec1b3cde17 19 0x04, 0x00, 0x00, 0x41, 0x3E, 0x00, 0x00, // Code for char )
Geremia 0:75ec1b3cde17 20 0x06, 0x00, 0x08, 0x3E, 0x1C, 0x3E, 0x08, // Code for char *
Geremia 0:75ec1b3cde17 21 0x06, 0x00, 0x08, 0x08, 0x3E, 0x08, 0x08, // Code for char +
Geremia 0:75ec1b3cde17 22 0x04, 0x00, 0x00, 0xE0, 0x60, 0x00, 0x00, // Code for char ,
Geremia 0:75ec1b3cde17 23 0x06, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, // Code for char -
Geremia 0:75ec1b3cde17 24 0x04, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, // Code for char .
Geremia 0:75ec1b3cde17 25 0x06, 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, // Code for char /
Geremia 0:75ec1b3cde17 26 0x06, 0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E, // Code for char 0
Geremia 0:75ec1b3cde17 27 0x05, 0x00, 0x00, 0x42, 0x7F, 0x40, 0x00, // Code for char 1
Geremia 0:75ec1b3cde17 28 0x06, 0x00, 0x62, 0x51, 0x49, 0x49, 0x46, // Code for char 2
Geremia 0:75ec1b3cde17 29 0x06, 0x00, 0x22, 0x49, 0x49, 0x49, 0x36, // Code for char 3
Geremia 0:75ec1b3cde17 30 0x06, 0x00, 0x18, 0x14, 0x12, 0x7F, 0x10, // Code for char 4
Geremia 0:75ec1b3cde17 31 0x06, 0x00, 0x2F, 0x49, 0x49, 0x49, 0x31, // Code for char 5
Geremia 0:75ec1b3cde17 32 0x06, 0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30, // Code for char 6
Geremia 0:75ec1b3cde17 33 0x06, 0x00, 0x01, 0x71, 0x09, 0x05, 0x03, // Code for char 7
Geremia 0:75ec1b3cde17 34 0x06, 0x00, 0x36, 0x49, 0x49, 0x49, 0x36, // Code for char 8
Geremia 0:75ec1b3cde17 35 0x06, 0x00, 0x06, 0x49, 0x49, 0x29, 0x1E, // Code for char 9
Geremia 0:75ec1b3cde17 36 0x04, 0x00, 0x00, 0x6C, 0x6C, 0x00, 0x00, // Code for char :
Geremia 0:75ec1b3cde17 37 0x04, 0x00, 0x00, 0xEC, 0x6C, 0x00, 0x00, // Code for char ;
Geremia 0:75ec1b3cde17 38 0x05, 0x00, 0x08, 0x14, 0x22, 0x41, 0x00, // Code for char <
Geremia 0:75ec1b3cde17 39 0x06, 0x00, 0x24, 0x24, 0x24, 0x24, 0x24, // Code for char =
Geremia 0:75ec1b3cde17 40 0x06, 0x00, 0x00, 0x41, 0x22, 0x14, 0x08, // Code for char >
Geremia 0:75ec1b3cde17 41 0x06, 0x00, 0x02, 0x01, 0x59, 0x09, 0x06, // Code for char ?
Geremia 0:75ec1b3cde17 42 0x06, 0x00, 0x3E, 0x41, 0x5D, 0x55, 0x1E, // Code for char @
Geremia 0:75ec1b3cde17 43 0x06, 0x00, 0x7E, 0x11, 0x11, 0x11, 0x7E, // Code for char A
Geremia 0:75ec1b3cde17 44 0x06, 0x00, 0x7F, 0x49, 0x49, 0x49, 0x36, // Code for char B
Geremia 0:75ec1b3cde17 45 0x06, 0x00, 0x3E, 0x41, 0x41, 0x41, 0x22, // Code for char C
Geremia 0:75ec1b3cde17 46 0x06, 0x00, 0x7F, 0x41, 0x41, 0x41, 0x3E, // Code for char D
Geremia 0:75ec1b3cde17 47 0x06, 0x00, 0x7F, 0x49, 0x49, 0x49, 0x41, // Code for char E
Geremia 0:75ec1b3cde17 48 0x06, 0x00, 0x7F, 0x09, 0x09, 0x09, 0x01, // Code for char F
Geremia 0:75ec1b3cde17 49 0x06, 0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A, // Code for char G
Geremia 0:75ec1b3cde17 50 0x06, 0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F, // Code for char H
Geremia 0:75ec1b3cde17 51 0x05, 0x00, 0x00, 0x41, 0x7F, 0x41, 0x00, // Code for char I
Geremia 0:75ec1b3cde17 52 0x06, 0x00, 0x30, 0x40, 0x40, 0x40, 0x3F, // Code for char J
Geremia 0:75ec1b3cde17 53 0x06, 0x00, 0x7F, 0x08, 0x14, 0x22, 0x41, // Code for char K
Geremia 0:75ec1b3cde17 54 0x06, 0x00, 0x7F, 0x40, 0x40, 0x40, 0x40, // Code for char L
Geremia 0:75ec1b3cde17 55 0x06, 0x00, 0x7F, 0x02, 0x04, 0x02, 0x7F, // Code for char M
Geremia 0:75ec1b3cde17 56 0x06, 0x00, 0x7F, 0x02, 0x04, 0x08, 0x7F, // Code for char N
Geremia 0:75ec1b3cde17 57 0x06, 0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E, // Code for char O
Geremia 0:75ec1b3cde17 58 0x06, 0x00, 0x7F, 0x09, 0x09, 0x09, 0x06, // Code for char P
Geremia 0:75ec1b3cde17 59 0x06, 0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E, // Code for char Q
Geremia 0:75ec1b3cde17 60 0x06, 0x00, 0x7F, 0x09, 0x09, 0x19, 0x66, // Code for char R
Geremia 0:75ec1b3cde17 61 0x06, 0x00, 0x26, 0x49, 0x49, 0x49, 0x32, // Code for char S
Geremia 0:75ec1b3cde17 62 0x06, 0x00, 0x01, 0x01, 0x7F, 0x01, 0x01, // Code for char T
Geremia 0:75ec1b3cde17 63 0x06, 0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F, // Code for char U
Geremia 0:75ec1b3cde17 64 0x06, 0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F, // Code for char V
Geremia 0:75ec1b3cde17 65 0x06, 0x00, 0x3F, 0x40, 0x3C, 0x40, 0x3F, // Code for char W
Geremia 0:75ec1b3cde17 66 0x06, 0x00, 0x63, 0x14, 0x08, 0x14, 0x63, // Code for char X
Geremia 0:75ec1b3cde17 67 0x06, 0x00, 0x07, 0x08, 0x70, 0x08, 0x07, // Code for char Y
Geremia 0:75ec1b3cde17 68 0x05, 0x00, 0x71, 0x49, 0x45, 0x43, 0x00, // Code for char Z
Geremia 0:75ec1b3cde17 69 0x05, 0x00, 0x00, 0x7F, 0x41, 0x41, 0x00, // Code for char [
Geremia 0:75ec1b3cde17 70 0x06, 0x00, 0x02, 0x04, 0x08, 0x10, 0x20, // Code for char BackSlash
Geremia 0:75ec1b3cde17 71 0x05, 0x00, 0x00, 0x41, 0x41, 0x7F, 0x00, // Code for char ]
Geremia 0:75ec1b3cde17 72 0x06, 0x00, 0x04, 0x02, 0x01, 0x02, 0x04, // Code for char ^
Geremia 0:75ec1b3cde17 73 0x06, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, // Code for char _
Geremia 0:75ec1b3cde17 74 0x04, 0x00, 0x00, 0x03, 0x07, 0x00, 0x00, // Code for char `
Geremia 0:75ec1b3cde17 75 0x06, 0x00, 0x20, 0x54, 0x54, 0x54, 0x78, // Code for char a
Geremia 0:75ec1b3cde17 76 0x06, 0x00, 0x7F, 0x44, 0x44, 0x44, 0x38, // Code for char b
Geremia 0:75ec1b3cde17 77 0x06, 0x00, 0x38, 0x44, 0x44, 0x44, 0x28, // Code for char c
Geremia 0:75ec1b3cde17 78 0x06, 0x00, 0x38, 0x44, 0x44, 0x44, 0x7F, // Code for char d
Geremia 0:75ec1b3cde17 79 0x06, 0x00, 0x38, 0x54, 0x54, 0x54, 0x08, // Code for char e
Geremia 0:75ec1b3cde17 80 0x05, 0x00, 0x08, 0x7E, 0x09, 0x09, 0x00, // Code for char f
Geremia 0:75ec1b3cde17 81 0x06, 0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C, // Code for char g
Geremia 0:75ec1b3cde17 82 0x05, 0x00, 0x7F, 0x04, 0x04, 0x78, 0x00, // Code for char h
Geremia 0:75ec1b3cde17 83 0x05, 0x00, 0x00, 0x00, 0x7D, 0x40, 0x00, // Code for char i
Geremia 0:75ec1b3cde17 84 0x05, 0x00, 0x40, 0x80, 0x84, 0x7D, 0x00, // Code for char j
Geremia 0:75ec1b3cde17 85 0x05, 0x00, 0x7F, 0x10, 0x28, 0x44, 0x00, // Code for char k
Geremia 0:75ec1b3cde17 86 0x05, 0x00, 0x00, 0x00, 0x7F, 0x40, 0x00, // Code for char l
Geremia 0:75ec1b3cde17 87 0x06, 0x00, 0x7C, 0x04, 0x18, 0x04, 0x78, // Code for char m
Geremia 0:75ec1b3cde17 88 0x05, 0x00, 0x7C, 0x04, 0x04, 0x78, 0x00, // Code for char n
Geremia 0:75ec1b3cde17 89 0x06, 0x00, 0x38, 0x44, 0x44, 0x44, 0x38, // Code for char o
Geremia 0:75ec1b3cde17 90 0x06, 0x00, 0xFC, 0x44, 0x44, 0x44, 0x38, // Code for char p
Geremia 0:75ec1b3cde17 91 0x06, 0x00, 0x38, 0x44, 0x44, 0x44, 0xFC, // Code for char q
Geremia 0:75ec1b3cde17 92 0x06, 0x00, 0x44, 0x78, 0x44, 0x04, 0x08, // Code for char r
Geremia 0:75ec1b3cde17 93 0x06, 0x00, 0x08, 0x54, 0x54, 0x54, 0x20, // Code for char s
Geremia 0:75ec1b3cde17 94 0x05, 0x00, 0x04, 0x3E, 0x44, 0x24, 0x00, // Code for char t
Geremia 0:75ec1b3cde17 95 0x05, 0x00, 0x3C, 0x40, 0x20, 0x7C, 0x00, // Code for char u
Geremia 0:75ec1b3cde17 96 0x06, 0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C, // Code for char v
Geremia 0:75ec1b3cde17 97 0x06, 0x00, 0x3C, 0x60, 0x30, 0x60, 0x3C, // Code for char w
Geremia 0:75ec1b3cde17 98 0x05, 0x00, 0x6C, 0x10, 0x10, 0x6C, 0x00, // Code for char x
Geremia 0:75ec1b3cde17 99 0x05, 0x00, 0x9C, 0xA0, 0x60, 0x3C, 0x00, // Code for char y
Geremia 0:75ec1b3cde17 100 0x05, 0x00, 0x64, 0x54, 0x54, 0x4C, 0x00, // Code for char z
Geremia 0:75ec1b3cde17 101 0x05, 0x00, 0x08, 0x3E, 0x41, 0x41, 0x00, // Code for char {
Geremia 0:75ec1b3cde17 102 0x04, 0x00, 0x00, 0x00, 0x77, 0x00, 0x00, // Code for char |
Geremia 0:75ec1b3cde17 103 0x06, 0x00, 0x00, 0x41, 0x41, 0x3E, 0x08, // Code for char }
Geremia 0:75ec1b3cde17 104 0x05, 0x00, 0x02, 0x01, 0x02, 0x01, 0x00, // Code for char ~
Geremia 0:75ec1b3cde17 105 0x06, 0x00, 0x3C, 0x26, 0x23, 0x26, 0x3C // Code for char 
Geremia 0:75ec1b3cde17 106 };
Geremia 0:75ec1b3cde17 107