PokittoLib with changes to lcd refresh etc.

Dependents:   Pokittris

Fork of Pokitto by Pokitto Community Team

This is a fork by user @Spinal, and is used in Pokittris for testing. Do not import this to your own program.

Committer:
spinal
Date:
Sun Oct 15 18:03:02 2017 +0000
Revision:
11:02ad9c807a21
Parent:
0:e8b8f36b4505
fixed 4color refreshRegion code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pokitto 0:e8b8f36b4505 1
Pokitto 0:e8b8f36b4505 2 //WARNING: This Font Require X-GLCD Lib.
Pokitto 0:e8b8f36b4505 3 // You can not use it with MikroE GLCD Lib.
Pokitto 0:e8b8f36b4505 4
Pokitto 0:e8b8f36b4505 5 //Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
Pokitto 0:e8b8f36b4505 6 //MikroElektronika 2011
Pokitto 0:e8b8f36b4505 7 //http://www.mikroe.com
Pokitto 0:e8b8f36b4505 8
Pokitto 0:e8b8f36b4505 9 //RECREATED BY @ROGB_UK
Pokitto 0:e8b8f36b4505 10
Pokitto 0:e8b8f36b4505 11
Pokitto 0:e8b8f36b4505 12 #include "PokittoFonts.h"
Pokitto 0:e8b8f36b4505 13
Pokitto 0:e8b8f36b4505 14 const unsigned char fontZXSpec[] = {
Pokitto 0:e8b8f36b4505 15 8,8,32,0,
Pokitto 0:e8b8f36b4505 16 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Code for char
Pokitto 0:e8b8f36b4505 17 0x04, 0x00, 0x00, 0x00, 0x5E, 0x00, 0x00, 0x00, 0x00, // Code for char !
Pokitto 0:e8b8f36b4505 18 0x06, 0x00, 0x00, 0x06, 0x00, 0x00, 0x06, 0x00, 0x00, // Code for char "
Pokitto 0:e8b8f36b4505 19 0x07, 0x00, 0x24, 0x7E, 0x24, 0x24, 0x7E, 0x24, 0x00, // Code for char #
Pokitto 0:e8b8f36b4505 20 0x07, 0x00, 0x00, 0x5C, 0x54, 0xFE, 0x54, 0x74, 0x00, // Code for char $
Pokitto 0:e8b8f36b4505 21 0x07, 0x00, 0x46, 0x26, 0x10, 0x08, 0x64, 0x62, 0x00, // Code for char %
Pokitto 0:e8b8f36b4505 22 0x07, 0x00, 0x20, 0x54, 0x4A, 0x54, 0x20, 0x50, 0x00, // Code for char &
Pokitto 0:e8b8f36b4505 23 0x05, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, // Code for char '
Pokitto 0:e8b8f36b4505 24 0x06, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x42, 0x00, 0x00, // Code for char (
Pokitto 0:e8b8f36b4505 25 0x04, 0x00, 0x00, 0x42, 0x3C, 0x00, 0x00, 0x00, 0x00, // Code for char )
Pokitto 0:e8b8f36b4505 26 0x07, 0x00, 0x00, 0x10, 0x54, 0x38, 0x54, 0x10, 0x00, // Code for char *
Pokitto 0:e8b8f36b4505 27 0x07, 0x00, 0x00, 0x10, 0x10, 0x7C, 0x10, 0x10, 0x00, // Code for char +
Pokitto 0:e8b8f36b4505 28 0x05, 0x00, 0x00, 0x00, 0x80, 0x60, 0x00, 0x00, 0x00, // Code for char ,
Pokitto 0:e8b8f36b4505 29 0x07, 0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, // Code for char -
Pokitto 0:e8b8f36b4505 30 0x05, 0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x00, // Code for char .
Pokitto 0:e8b8f36b4505 31 0x07, 0x00, 0x00, 0x40, 0x20, 0x10, 0x08, 0x04, 0x00, // Code for char /
Pokitto 0:e8b8f36b4505 32 0x07, 0x00, 0x3C, 0x62, 0x52, 0x4A, 0x46, 0x3C, 0x00, // Code for char 0
Pokitto 0:e8b8f36b4505 33 0x07, 0x00, 0x00, 0x44, 0x42, 0x7E, 0x40, 0x40, 0x00, // Code for char 1
Pokitto 0:e8b8f36b4505 34 0x07, 0x00, 0x64, 0x52, 0x52, 0x52, 0x52, 0x4C, 0x00, // Code for char 2
Pokitto 0:e8b8f36b4505 35 0x07, 0x00, 0x24, 0x42, 0x42, 0x4A, 0x4A, 0x34, 0x00, // Code for char 3
Pokitto 0:e8b8f36b4505 36 0x07, 0x00, 0x30, 0x28, 0x24, 0x7E, 0x20, 0x20, 0x00, // Code for char 4
Pokitto 0:e8b8f36b4505 37 0x07, 0x00, 0x2E, 0x4A, 0x4A, 0x4A, 0x4A, 0x32, 0x00, // Code for char 5
Pokitto 0:e8b8f36b4505 38 0x07, 0x00, 0x3C, 0x4A, 0x4A, 0x4A, 0x4A, 0x30, 0x00, // Code for char 6
Pokitto 0:e8b8f36b4505 39 0x07, 0x00, 0x02, 0x02, 0x62, 0x12, 0x0A, 0x06, 0x00, // Code for char 7
Pokitto 0:e8b8f36b4505 40 0x07, 0x00, 0x34, 0x4A, 0x4A, 0x4A, 0x4A, 0x34, 0x00, // Code for char 8
Pokitto 0:e8b8f36b4505 41 0x07, 0x00, 0x0C, 0x52, 0x52, 0x52, 0x52, 0x3C, 0x00, // Code for char 9
Pokitto 0:e8b8f36b4505 42 0x04, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, // Code for char :
Pokitto 0:e8b8f36b4505 43 0x04, 0x00, 0x00, 0x80, 0x64, 0x00, 0x00, 0x00, 0x00, // Code for char ;
Pokitto 0:e8b8f36b4505 44 0x06, 0x00, 0x00, 0x00, 0x10, 0x28, 0x44, 0x00, 0x00, // Code for char <
Pokitto 0:e8b8f36b4505 45 0x07, 0x00, 0x00, 0x28, 0x28, 0x28, 0x28, 0x28, 0x00, // Code for char =
Pokitto 0:e8b8f36b4505 46 0x06, 0x00, 0x00, 0x00, 0x44, 0x28, 0x10, 0x00, 0x00, // Code for char >
Pokitto 0:e8b8f36b4505 47 0x07, 0x00, 0x04, 0x02, 0x02, 0x52, 0x0A, 0x04, 0x00, // Code for char ?
Pokitto 0:e8b8f36b4505 48 0x07, 0x00, 0x3C, 0x42, 0x5A, 0x56, 0x5A, 0x1C, 0x00, // Code for char @
Pokitto 0:e8b8f36b4505 49 0x07, 0x00, 0x7C, 0x12, 0x12, 0x12, 0x12, 0x7C, 0x00, // Code for char A
Pokitto 0:e8b8f36b4505 50 0x07, 0x00, 0x7E, 0x4A, 0x4A, 0x4A, 0x4A, 0x34, 0x00, // Code for char B
Pokitto 0:e8b8f36b4505 51 0x07, 0x00, 0x3C, 0x42, 0x42, 0x42, 0x42, 0x24, 0x00, // Code for char C
Pokitto 0:e8b8f36b4505 52 0x07, 0x00, 0x7E, 0x42, 0x42, 0x42, 0x24, 0x18, 0x00, // Code for char D
Pokitto 0:e8b8f36b4505 53 0x07, 0x00, 0x7E, 0x4A, 0x4A, 0x4A, 0x4A, 0x42, 0x00, // Code for char E
Pokitto 0:e8b8f36b4505 54 0x07, 0x00, 0x7E, 0x0A, 0x0A, 0x0A, 0x0A, 0x02, 0x00, // Code for char F
Pokitto 0:e8b8f36b4505 55 0x07, 0x00, 0x3C, 0x42, 0x42, 0x52, 0x52, 0x34, 0x00, // Code for char G
Pokitto 0:e8b8f36b4505 56 0x07, 0x00, 0x7E, 0x08, 0x08, 0x08, 0x08, 0x7E, 0x00, // Code for char H
Pokitto 0:e8b8f36b4505 57 0x07, 0x00, 0x00, 0x42, 0x42, 0x7E, 0x42, 0x42, 0x00, // Code for char I
Pokitto 0:e8b8f36b4505 58 0x07, 0x00, 0x30, 0x40, 0x40, 0x40, 0x40, 0x3E, 0x00, // Code for char J
Pokitto 0:e8b8f36b4505 59 0x07, 0x00, 0x7E, 0x08, 0x08, 0x14, 0x22, 0x40, 0x00, // Code for char K
Pokitto 0:e8b8f36b4505 60 0x07, 0x00, 0x7E, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, // Code for char L
Pokitto 0:e8b8f36b4505 61 0x07, 0x00, 0x7E, 0x04, 0x08, 0x08, 0x04, 0x7E, 0x00, // Code for char M
Pokitto 0:e8b8f36b4505 62 0x07, 0x00, 0x7E, 0x04, 0x08, 0x10, 0x20, 0x7E, 0x00, // Code for char N
Pokitto 0:e8b8f36b4505 63 0x07, 0x00, 0x3C, 0x42, 0x42, 0x42, 0x42, 0x3C, 0x00, // Code for char O
Pokitto 0:e8b8f36b4505 64 0x07, 0x00, 0x7E, 0x12, 0x12, 0x12, 0x12, 0x0C, 0x00, // Code for char P
Pokitto 0:e8b8f36b4505 65 0x07, 0x00, 0x3C, 0x42, 0x52, 0x62, 0x42, 0x3C, 0x00, // Code for char Q
Pokitto 0:e8b8f36b4505 66 0x07, 0x00, 0x7E, 0x12, 0x12, 0x12, 0x32, 0x4C, 0x00, // Code for char R
Pokitto 0:e8b8f36b4505 67 0x07, 0x00, 0x24, 0x4A, 0x4A, 0x4A, 0x4A, 0x30, 0x00, // Code for char S
Pokitto 0:e8b8f36b4505 68 0x07, 0x02, 0x02, 0x02, 0x7E, 0x02, 0x02, 0x02, 0x00, // Code for char T
Pokitto 0:e8b8f36b4505 69 0x07, 0x00, 0x3E, 0x40, 0x40, 0x40, 0x40, 0x3E, 0x00, // Code for char U
Pokitto 0:e8b8f36b4505 70 0x07, 0x00, 0x1E, 0x20, 0x40, 0x40, 0x20, 0x1E, 0x00, // Code for char V
Pokitto 0:e8b8f36b4505 71 0x07, 0x00, 0x3E, 0x40, 0x20, 0x20, 0x40, 0x3E, 0x00, // Code for char W
Pokitto 0:e8b8f36b4505 72 0x07, 0x00, 0x42, 0x24, 0x18, 0x18, 0x24, 0x42, 0x00, // Code for char X
Pokitto 0:e8b8f36b4505 73 0x07, 0x02, 0x04, 0x08, 0x70, 0x08, 0x04, 0x02, 0x00, // Code for char Y
Pokitto 0:e8b8f36b4505 74 0x07, 0x00, 0x42, 0x62, 0x52, 0x4A, 0x46, 0x42, 0x00, // Code for char Z
Pokitto 0:e8b8f36b4505 75 0x07, 0x00, 0x00, 0x00, 0x00, 0x7E, 0x42, 0x42, 0x00, // Code for char [
Pokitto 0:e8b8f36b4505 76 0x06, 0x00, 0x04, 0x08, 0x10, 0x20, 0x40, 0x00, 0x00, // Code for char BackSlash
Pokitto 0:e8b8f36b4505 77 0x04, 0x00, 0x42, 0x42, 0x7E, 0x00, 0x00, 0x00, 0x00, // Code for char ]
Pokitto 0:e8b8f36b4505 78 0x06, 0x00, 0x04, 0x02, 0x7F, 0x02, 0x04, 0x00, 0x00, // Code for char ^
Pokitto 0:e8b8f36b4505 79 0x08, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, // Code for char _
Pokitto 0:e8b8f36b4505 80 0x07, 0x00, 0x48, 0x7C, 0x4A, 0x4A, 0x42, 0x44, 0x00, // Code for char `
Pokitto 0:e8b8f36b4505 81 0x06, 0x00, 0x20, 0x54, 0x54, 0x54, 0x78, 0x00, 0x00, // Code for char a
Pokitto 0:e8b8f36b4505 82 0x07, 0x00, 0x00, 0x7E, 0x48, 0x48, 0x48, 0x30, 0x00, // Code for char b
Pokitto 0:e8b8f36b4505 83 0x06, 0x00, 0x00, 0x38, 0x44, 0x44, 0x44, 0x00, 0x00, // Code for char c
Pokitto 0:e8b8f36b4505 84 0x06, 0x00, 0x30, 0x48, 0x48, 0x48, 0x7E, 0x00, 0x00, // Code for char d
Pokitto 0:e8b8f36b4505 85 0x06, 0x00, 0x38, 0x54, 0x54, 0x54, 0x48, 0x00, 0x00, // Code for char e
Pokitto 0:e8b8f36b4505 86 0x06, 0x00, 0x00, 0x00, 0x7C, 0x0A, 0x02, 0x00, 0x00, // Code for char f
Pokitto 0:e8b8f36b4505 87 0x06, 0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C, 0x00, 0x00, // Code for char g
Pokitto 0:e8b8f36b4505 88 0x06, 0x00, 0x7E, 0x08, 0x08, 0x08, 0x70, 0x00, 0x00, // Code for char h
Pokitto 0:e8b8f36b4505 89 0x05, 0x00, 0x00, 0x48, 0x7A, 0x40, 0x00, 0x00, 0x00, // Code for char i
Pokitto 0:e8b8f36b4505 90 0x06, 0x00, 0x00, 0x40, 0x80, 0x80, 0x7A, 0x00, 0x00, // Code for char j
Pokitto 0:e8b8f36b4505 91 0x06, 0x00, 0x00, 0x7E, 0x18, 0x24, 0x40, 0x00, 0x00, // Code for char k
Pokitto 0:e8b8f36b4505 92 0x06, 0x00, 0x00, 0x00, 0x3E, 0x40, 0x40, 0x00, 0x00, // Code for char l
Pokitto 0:e8b8f36b4505 93 0x06, 0x00, 0x7C, 0x04, 0x78, 0x04, 0x78, 0x00, 0x00, // Code for char m
Pokitto 0:e8b8f36b4505 94 0x06, 0x00, 0x7C, 0x04, 0x04, 0x04, 0x78, 0x00, 0x00, // Code for char n
Pokitto 0:e8b8f36b4505 95 0x06, 0x00, 0x38, 0x44, 0x44, 0x44, 0x38, 0x00, 0x00, // Code for char o
Pokitto 0:e8b8f36b4505 96 0x06, 0x00, 0xFC, 0x24, 0x24, 0x24, 0x18, 0x00, 0x00, // Code for char p
Pokitto 0:e8b8f36b4505 97 0x07, 0x00, 0x18, 0x24, 0x24, 0x24, 0xFC, 0x80, 0x00, // Code for char q
Pokitto 0:e8b8f36b4505 98 0x06, 0x00, 0x00, 0x78, 0x04, 0x04, 0x04, 0x00, 0x00, // Code for char r
Pokitto 0:e8b8f36b4505 99 0x06, 0x00, 0x48, 0x54, 0x54, 0x54, 0x20, 0x00, 0x00, // Code for char s
Pokitto 0:e8b8f36b4505 100 0x06, 0x00, 0x00, 0x04, 0x3E, 0x44, 0x40, 0x00, 0x00, // Code for char t
Pokitto 0:e8b8f36b4505 101 0x06, 0x00, 0x3C, 0x40, 0x40, 0x40, 0x3C, 0x00, 0x00, // Code for char u
Pokitto 0:e8b8f36b4505 102 0x06, 0x00, 0x0C, 0x30, 0x40, 0x30, 0x0C, 0x00, 0x00, // Code for char v
Pokitto 0:e8b8f36b4505 103 0x06, 0x00, 0x3C, 0x40, 0x3C, 0x40, 0x3C, 0x00, 0x00, // Code for char w
Pokitto 0:e8b8f36b4505 104 0x06, 0x00, 0x44, 0x28, 0x10, 0x28, 0x44, 0x00, 0x00, // Code for char x
Pokitto 0:e8b8f36b4505 105 0x06, 0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C, 0x00, 0x00, // Code for char y
Pokitto 0:e8b8f36b4505 106 0x06, 0x00, 0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, 0x00, // Code for char z
Pokitto 0:e8b8f36b4505 107 0x07, 0x00, 0x00, 0x08, 0x08, 0x76, 0x42, 0x42, 0x00, // Code for char {
Pokitto 0:e8b8f36b4505 108 0x05, 0x00, 0x00, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x00, // Code for char |
Pokitto 0:e8b8f36b4505 109 0x06, 0x00, 0x42, 0x42, 0x76, 0x08, 0x08, 0x00, 0x00, // Code for char }
Pokitto 0:e8b8f36b4505 110 0x07, 0x00, 0x00, 0x00, 0x04, 0x02, 0x04, 0x02, 0x00, // Code for char ~
Pokitto 0:e8b8f36b4505 111 0x08, 0x3C, 0x42, 0x99, 0xA5, 0xA5, 0x81, 0x42, 0x3C // Code for char 
Pokitto 0:e8b8f36b4505 112 };
Pokitto 0:e8b8f36b4505 113
Pokitto 0:e8b8f36b4505 114