PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!
Committer:
Pokitto
Date:
Wed Dec 25 23:59:52 2019 +0000
Revision:
71:531419862202
Parent:
0:e8b8f36b4505
Changed Mode2 C++ refresh code (graphical errors)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pokitto 0:e8b8f36b4505 1
Pokitto 0:e8b8f36b4505 2 // This font contains a special UI graphics in lower case letters. It is meant to be used with Pokitto UI Widgets.
Pokitto 0:e8b8f36b4505 3
Pokitto 0:e8b8f36b4505 4 //WARNING: This Font is usable only with MikroE GLCD Lib.
Pokitto 0:e8b8f36b4505 5 // X-GLCD Lib does not handle this font.
Pokitto 0:e8b8f36b4505 6
Pokitto 0:e8b8f36b4505 7 //Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
Pokitto 0:e8b8f36b4505 8 //MikroeElektronika 2011
Pokitto 0:e8b8f36b4505 9 //http://www.mikroe.com
Pokitto 0:e8b8f36b4505 10
Pokitto 0:e8b8f36b4505 11 //GLCD FontName : C64Font8x8
Pokitto 0:e8b8f36b4505 12 //GLCD FontSize : 8 x 8
Pokitto 0:e8b8f36b4505 13 #include "PokittoFonts.h"
Pokitto 0:e8b8f36b4505 14
Pokitto 0:e8b8f36b4505 15 const unsigned char fntC64UIGfx[] = {
Pokitto 0:e8b8f36b4505 16 8,8,32,0, //width, height, start char, boolean truncated to only caps
Pokitto 0:e8b8f36b4505 17 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Code for char
Pokitto 0:e8b8f36b4505 18 0x08, 0x00, 0x00, 0x00, 0x4F, 0x4F, 0x00, 0x00, 0x00, // Code for char !
Pokitto 0:e8b8f36b4505 19 0x08, 0x00, 0x03, 0x03, 0x00, 0x00, 0x03, 0x03, 0x00, // Code for char "
Pokitto 0:e8b8f36b4505 20 0x08, 0x14, 0x7F, 0x7F, 0x14, 0x14, 0x7F, 0x7F, 0x14, // Code for char #
Pokitto 0:e8b8f36b4505 21 0x08, 0x00, 0x24, 0x2E, 0x6B, 0x6B, 0x3A, 0x12, 0x00, // Code for char $
Pokitto 0:e8b8f36b4505 22 0x08, 0x00, 0x63, 0x33, 0x18, 0x0C, 0x66, 0x63, 0x00, // Code for char %
Pokitto 0:e8b8f36b4505 23 0x08, 0x00, 0x32, 0x7F, 0x4D, 0x4D, 0x77, 0x72, 0x50, // Code for char &
Pokitto 0:e8b8f36b4505 24 0x08, 0x00, 0x00, 0x00, 0x04, 0x06, 0x03, 0x01, 0x00, // Code for char '
Pokitto 0:e8b8f36b4505 25 0x08, 0x00, 0x00, 0x1C, 0x3E, 0x63, 0x41, 0x00, 0x00, // Code for char (
Pokitto 0:e8b8f36b4505 26 0x08, 0x00, 0x00, 0x41, 0x63, 0x3E, 0x1C, 0x00, 0x00, // Code for char )
Pokitto 0:e8b8f36b4505 27 0x08, 0x08, 0x2A, 0x3E, 0x1C, 0x1C, 0x3E, 0x2A, 0x08, // Code for char *
Pokitto 0:e8b8f36b4505 28 0x08, 0x00, 0x08, 0x08, 0x3E, 0x3E, 0x08, 0x08, 0x00, // Code for char +
Pokitto 0:e8b8f36b4505 29 0x08, 0x00, 0x00, 0x80, 0xE0, 0x60, 0x00, 0x00, 0x00, // Code for char ,
Pokitto 0:e8b8f36b4505 30 0x08, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, // Code for char -
Pokitto 0:e8b8f36b4505 31 0x08, 0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x00, // Code for char .
Pokitto 0:e8b8f36b4505 32 0x08, 0x00, 0x40, 0x60, 0x30, 0x18, 0x0C, 0x06, 0x02, // Code for char /
Pokitto 0:e8b8f36b4505 33 0x08, 0x00, 0x3E, 0x7F, 0x49, 0x45, 0x7F, 0x3E, 0x00, // Code for char 0
Pokitto 0:e8b8f36b4505 34 0x08, 0x00, 0x40, 0x44, 0x7F, 0x7F, 0x40, 0x40, 0x00, // Code for char 1
Pokitto 0:e8b8f36b4505 35 0x08, 0x00, 0x62, 0x73, 0x51, 0x49, 0x4F, 0x46, 0x00, // Code for char 2
Pokitto 0:e8b8f36b4505 36 0x08, 0x00, 0x22, 0x63, 0x49, 0x49, 0x7F, 0x36, 0x00, // Code for char 3
Pokitto 0:e8b8f36b4505 37 0x08, 0x00, 0x00, 0x18, 0x14, 0x16, 0x7F, 0x7F, 0x10, // Code for char 4
Pokitto 0:e8b8f36b4505 38 0x08, 0x00, 0x27, 0x67, 0x45, 0x45, 0x7D, 0x39, 0x00, // Code for char 5
Pokitto 0:e8b8f36b4505 39 0x08, 0x00, 0x3E, 0x7F, 0x49, 0x49, 0x7B, 0x32, 0x00, // Code for char 6
Pokitto 0:e8b8f36b4505 40 0x08, 0x00, 0x03, 0x03, 0x79, 0x7D, 0x07, 0x03, 0x00, // Code for char 7
Pokitto 0:e8b8f36b4505 41 0x08, 0x00, 0x36, 0x7F, 0x49, 0x49, 0x7F, 0x36, 0x00, // Code for char 8
Pokitto 0:e8b8f36b4505 42 0x08, 0x00, 0x26, 0x6F, 0x49, 0x49, 0x7F, 0x3E, 0x00, // Code for char 9
Pokitto 0:e8b8f36b4505 43 0x08, 0x00, 0x00, 0x00, 0x24, 0x24, 0x00, 0x00, 0x00, // Code for char :
Pokitto 0:e8b8f36b4505 44 0x08, 0x00, 0x00, 0x80, 0xE4, 0x64, 0x00, 0x00, 0x00, // Code for char ;
Pokitto 0:e8b8f36b4505 45 0x08, 0x00, 0x08, 0x1C, 0x36, 0x63, 0x41, 0x41, 0x00, // Code for char <
Pokitto 0:e8b8f36b4505 46 0x08, 0x00, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x00, // Code for char =
Pokitto 0:e8b8f36b4505 47 0x08, 0x00, 0x41, 0x41, 0x63, 0x36, 0x1C, 0x08, 0x00, // Code for char >
Pokitto 0:e8b8f36b4505 48 0x08, 0x00, 0x02, 0x03, 0x51, 0x59, 0x0F, 0x06, 0x00, // Code for char ?
Pokitto 0:e8b8f36b4505 49 0x08, 0x00, 0x3E, 0x7F, 0x41, 0x4D, 0x6F, 0x2E, 0x00, // Code for char @
Pokitto 0:e8b8f36b4505 50 0x08, 0x00, 0x7C, 0x7E, 0x0B, 0x0B, 0x7E, 0x7C, 0x00, // Code for char A
Pokitto 0:e8b8f36b4505 51 0x08, 0x00, 0x7F, 0x7F, 0x49, 0x49, 0x7F, 0x36, 0x00, // Code for char B
Pokitto 0:e8b8f36b4505 52 0x08, 0x00, 0x3E, 0x7F, 0x41, 0x41, 0x63, 0x22, 0x00, // Code for char C
Pokitto 0:e8b8f36b4505 53 0x08, 0x00, 0x7F, 0x7F, 0x41, 0x63, 0x3E, 0x1C, 0x00, // Code for char D
Pokitto 0:e8b8f36b4505 54 0x08, 0x00, 0x7F, 0x7F, 0x49, 0x49, 0x41, 0x41, 0x00, // Code for char E
Pokitto 0:e8b8f36b4505 55 0x08, 0x00, 0x7F, 0x7F, 0x09, 0x09, 0x01, 0x01, 0x00, // Code for char F
Pokitto 0:e8b8f36b4505 56 0x08, 0x00, 0x3E, 0x7F, 0x41, 0x49, 0x7B, 0x3A, 0x00, // Code for char G
Pokitto 0:e8b8f36b4505 57 0x08, 0x00, 0x7F, 0x7F, 0x08, 0x08, 0x7F, 0x7F, 0x00, // Code for char H
Pokitto 0:e8b8f36b4505 58 0x08, 0x00, 0x00, 0x41, 0x7F, 0x7F, 0x41, 0x00, 0x00, // Code for char I
Pokitto 0:e8b8f36b4505 59 0x08, 0x00, 0x20, 0x61, 0x41, 0x7F, 0x3F, 0x01, 0x00, // Code for char J
Pokitto 0:e8b8f36b4505 60 0x08, 0x00, 0x7F, 0x7F, 0x1C, 0x36, 0x63, 0x41, 0x00, // Code for char K
Pokitto 0:e8b8f36b4505 61 0x08, 0x00, 0x7F, 0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, // Code for char L
Pokitto 0:e8b8f36b4505 62 0x08, 0x00, 0x7F, 0x7F, 0x06, 0x0C, 0x06, 0x7F, 0x7F, // Code for char M
Pokitto 0:e8b8f36b4505 63 0x08, 0x00, 0x7F, 0x7F, 0x0E, 0x1C, 0x7F, 0x7F, 0x00, // Code for char N
Pokitto 0:e8b8f36b4505 64 0x08, 0x00, 0x3E, 0x7F, 0x41, 0x41, 0x7F, 0x3E, 0x00, // Code for char O
Pokitto 0:e8b8f36b4505 65 0x08, 0x00, 0x7F, 0x7F, 0x09, 0x09, 0x0F, 0x06, 0x00, // Code for char P
Pokitto 0:e8b8f36b4505 66 0x08, 0x00, 0x1E, 0x3F, 0x21, 0x61, 0x7F, 0x5E, 0x00, // Code for char Q
Pokitto 0:e8b8f36b4505 67 0x08, 0x00, 0x7F, 0x7F, 0x19, 0x39, 0x6F, 0x46, 0x00, // Code for char R
Pokitto 0:e8b8f36b4505 68 0x08, 0x00, 0x26, 0x6F, 0x49, 0x49, 0x7B, 0x32, 0x00, // Code for char S
Pokitto 0:e8b8f36b4505 69 0x08, 0x00, 0x01, 0x01, 0x7F, 0x7F, 0x01, 0x01, 0x00, // Code for char T
Pokitto 0:e8b8f36b4505 70 0x08, 0x00, 0x3F, 0x7F, 0x40, 0x40, 0x7F, 0x3F, 0x00, // Code for char U
Pokitto 0:e8b8f36b4505 71 0x08, 0x00, 0x1F, 0x3F, 0x60, 0x60, 0x3F, 0x1F, 0x00, // Code for char V
Pokitto 0:e8b8f36b4505 72 0x08, 0x00, 0x7F, 0x7F, 0x30, 0x18, 0x30, 0x7F, 0x7F, // Code for char W
Pokitto 0:e8b8f36b4505 73 0x08, 0x00, 0x63, 0x77, 0x1C, 0x1C, 0x77, 0x63, 0x00, // Code for char X
Pokitto 0:e8b8f36b4505 74 0x08, 0x00, 0x07, 0x0F, 0x78, 0x78, 0x0F, 0x07, 0x00, // Code for char Y
Pokitto 0:e8b8f36b4505 75 0x08, 0x00, 0x61, 0x71, 0x59, 0x4D, 0x47, 0x43, 0x00, // Code for char Z
Pokitto 0:e8b8f36b4505 76 0x08, 0x00, 0x00, 0x7F, 0x7F, 0x41, 0x41, 0x00, 0x00, // Code for char [
Pokitto 0:e8b8f36b4505 77 0x08, 0x02, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x40, 0x00, // Code for char BackSlash
Pokitto 0:e8b8f36b4505 78 0x08, 0x00, 0x00, 0x41, 0x41, 0x7F, 0x7F, 0x00, 0x00, // Code for char ]
Pokitto 0:e8b8f36b4505 79 0x08, 0x00, 0x08, 0x0C, 0xFE, 0xFE, 0x0C, 0x08, 0x00, // Code for char ^
Pokitto 0:e8b8f36b4505 80 0x08, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, // Code for char _
Pokitto 0:e8b8f36b4505 81 0x08, 0x00, 0x00, 0x00, 0x01, 0x03, 0x06, 0x04, 0x00, // Code for char `
Pokitto 0:e8b8f36b4505 82 0x08, 0x00, 0x00, 0x00, 0xE0, 0xF0, 0x38, 0x18, 0x18, // Code for char a, UI graphics
Pokitto 0:e8b8f36b4505 83 0x08, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, // Code for char b, UI graphics
Pokitto 0:e8b8f36b4505 84 0x08, 0x18, 0x18, 0x38, 0xF0, 0xE0, 0x00, 0x00, 0x00, // Code for char c, UI graphics
Pokitto 0:e8b8f36b4505 85 0x08, 0x00, 0x00, 0x00, 0x07, 0x0F, 0x1C, 0x18, 0x18, // Code for char d, UI graphics
Pokitto 0:e8b8f36b4505 86 0x08, 0x18, 0x18, 0x1C, 0x0F, 0x07, 0x00, 0x00, 0x00, // Code for char e, UI graphics
Pokitto 0:e8b8f36b4505 87 0x08, 0x00, 0x00, 0x00, 0xCC, 0xCC, 0x00, 0x00, 0x00, // Code for char f, UI graphics
Pokitto 0:e8b8f36b4505 88 0x08, 0x33, 0x99, 0xCC, 0x66, 0x33, 0x99, 0xCC, 0x66, // Code for char g, UI graphics
Pokitto 0:e8b8f36b4505 89 0x08, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // Code for char h, UI graphics
Pokitto 0:e8b8f36b4505 90 0x08, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x09, 0x09, 0x07, // Code for char i, Pokitto image.
Pokitto 0:e8b8f36b4505 91 0x08, 0xF1, 0xF1, 0xF1, 0xF1, 0x71, 0x71, 0xF1, 0xF1, // Code for char j, Pokitto image.
Pokitto 0:e8b8f36b4505 92 0x08, 0xF1, 0xF1, 0x71, 0x71, 0xF1, 0xF1, 0xF1, 0xF1, // Code for char k, Pokitto image.
Pokitto 0:e8b8f36b4505 93 0x08, 0x07, 0x09, 0x09, 0xFE, 0x00, 0x00, 0x00, 0x00, // Code for char l, Pokitto image.
Pokitto 0:e8b8f36b4505 94 0x08, 0x00, 0x0C, 0x12, 0x12, 0xFF, 0x00, 0x00, 0x00, // Code for char m, Pokitto image.
Pokitto 0:e8b8f36b4505 95 0x08, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0xEF, 0xEE, 0xEF, // Code for char n, Pokitto image.
Pokitto 0:e8b8f36b4505 96 0x08, 0xEF, 0xEE, 0xEF, 0xF7, 0xFE, 0xFF, 0xFF, 0xFF, // Code for char o, Pokitto image.
Pokitto 0:e8b8f36b4505 97 0x08, 0x00, 0x00, 0x00, 0xFF, 0x12, 0x12, 0x0C, 0x00, // Code for char p, Pokitto image.
Pokitto 0:e8b8f36b4505 98 0x08, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, // Code for char q, Pokitto image.
Pokitto 0:e8b8f36b4505 99 0x08, 0x30, 0x30, 0xFC, 0xFC, 0x30, 0x30, 0x00, 0x00, // Code for char r, Pokitto image.
Pokitto 0:e8b8f36b4505 100 0x08, 0x00, 0x00, 0x70, 0x70, 0x70, 0x00, 0x1C, 0x1C, // Code for char s, Pokitto image.
Pokitto 0:e8b8f36b4505 101 0x08, 0x1C, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, // Code for char t, Pokitto image.
Pokitto 0:e8b8f36b4505 102 0x08, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x92, 0x92, 0x7C, // Code for char u, Pokitto image.
Pokitto 0:e8b8f36b4505 103 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x12, // Code for char v, Pokitto image.
Pokitto 0:e8b8f36b4505 104 0x08, 0x12, 0x12, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, // Code for char w, Pokitto image.
Pokitto 0:e8b8f36b4505 105 0x08, 0x7C, 0x92, 0x92, 0x7F, 0x00, 0x00, 0x00, 0x00, // Code for char x, Pokitto image.
Pokitto 0:e8b8f36b4505 106 0x08, 0x00, 0x9C, 0xBC, 0xA0, 0xE0, 0x7C, 0x3C, 0x00, // Code for char y
Pokitto 0:e8b8f36b4505 107 0x08, 0x00, 0x44, 0x64, 0x74, 0x5C, 0x4C, 0x44, 0x00, // Code for char z
Pokitto 0:e8b8f36b4505 108 0x08, 0x00, 0x08, 0x7F, 0x77, 0x41, 0x41, 0x00, 0x00, // Code for char {
Pokitto 0:e8b8f36b4505 109 0x08, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, // Code for char |
Pokitto 0:e8b8f36b4505 110 0x08, 0x00, 0x00, 0x41, 0x41, 0x77, 0x7F, 0x08, 0x00, // Code for char }
Pokitto 0:e8b8f36b4505 111 0x08, 0x00, 0x02, 0x06, 0x04, 0x02, 0x06, 0x04, 0x00, // Code for char ~
Pokitto 0:e8b8f36b4505 112 0x08, 0x00, 0x3C, 0x66, 0x66, 0x3C, 0x66, 0x66, 0x3C // Code for char
Pokitto 0:e8b8f36b4505 113 };
Pokitto 0:e8b8f36b4505 114
Pokitto 0:e8b8f36b4505 115