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 * (C) Copyright 2014 Aurélien Rodot. All rights reserved.
Pokitto 0:e8b8f36b4505 3 *
Pokitto 0:e8b8f36b4505 4 * This file is part of the Gamebuino Library (http://gamebuino.com)
Pokitto 0:e8b8f36b4505 5 *
Pokitto 0:e8b8f36b4505 6 * The Gamebuino Library is free software: you can redistribute it and/or modify
Pokitto 0:e8b8f36b4505 7 * it under the terms of the GNU Lesser General Public License as published by
Pokitto 0:e8b8f36b4505 8 * the Free Software Foundation, either version 3 of the License, or
Pokitto 0:e8b8f36b4505 9 * (at your option) any later version.
Pokitto 0:e8b8f36b4505 10 *
Pokitto 0:e8b8f36b4505 11 * This program is distributed in the hope that it will be useful,
Pokitto 0:e8b8f36b4505 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Pokitto 0:e8b8f36b4505 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Pokitto 0:e8b8f36b4505 14 * GNU Lesser General Public License for more details.
Pokitto 0:e8b8f36b4505 15 *
Pokitto 0:e8b8f36b4505 16 * You should have received a copy of the GNU Lesser General Public License
Pokitto 0:e8b8f36b4505 17 * along with this program. If not, see <http://www.gnu.org/licenses/>
Pokitto 0:e8b8f36b4505 18 */
Pokitto 0:e8b8f36b4505 19
Pokitto 0:e8b8f36b4505 20 #ifndef FONT3x3_C
Pokitto 0:e8b8f36b4505 21 #define FONT3x3_C
Pokitto 0:e8b8f36b4505 22
Pokitto 0:e8b8f36b4505 23 #include <stdint.h> //jonne
Pokitto 0:e8b8f36b4505 24 #include "PokittoFonts.h"
Pokitto 0:e8b8f36b4505 25
Pokitto 0:e8b8f36b4505 26 //standard ascii 3x3font
Pokitto 0:e8b8f36b4505 27 #define PROGMEM
Pokitto 0:e8b8f36b4505 28 const uint8_t font3x3[] PROGMEM = {
Pokitto 0:e8b8f36b4505 29 3,3,0,0,//width and height
Pokitto 0:e8b8f36b4505 30 3,0x07, 0x05, 0x07, // 0
Pokitto 0:e8b8f36b4505 31 3,0x05, 0x04, 0x05, // 1
Pokitto 0:e8b8f36b4505 32 3,0x05, 0x04, 0x05, // 2
Pokitto 0:e8b8f36b4505 33 3,0x03, 0x06, 0x03, // 3
Pokitto 0:e8b8f36b4505 34 3,0x02, 0x07, 0x02, // 4
Pokitto 0:e8b8f36b4505 35 3,0x02, 0x01, 0x02, // 5
Pokitto 0:e8b8f36b4505 36 3,0x02, 0x03, 0x02, // 6
Pokitto 0:e8b8f36b4505 37 3,0x0E, 0x09, 0x0E, // 7
Pokitto 0:e8b8f36b4505 38 3,0x0E, 0x0D, 0x0E, // 8
Pokitto 0:e8b8f36b4505 39 3,0x0E, 0x0F, 0x0E, // 9
Pokitto 0:e8b8f36b4505 40 3,0x07, 0x05, 0x07, // 10
Pokitto 0:e8b8f36b4505 41 3,0x05, 0x03, 0x07, // 11
Pokitto 0:e8b8f36b4505 42 3,0x05, 0x0F, 0x05, // 12
Pokitto 0:e8b8f36b4505 43 3,0x07, 0x05, 0x07, // 13
Pokitto 0:e8b8f36b4505 44 3,0x06, 0x07, 0x01, // 14
Pokitto 0:e8b8f36b4505 45 3,0x02, 0x05, 0x02, // 15
Pokitto 0:e8b8f36b4505 46 3,0x00, 0x07, 0x02, // 16
Pokitto 0:e8b8f36b4505 47 3,0x02, 0x07, 0x00, // 17
Pokitto 0:e8b8f36b4505 48 3,0x02, 0x07, 0x02, // 18
Pokitto 0:e8b8f36b4505 49 3,0x00, 0x02, 0x07, // 19
Pokitto 0:e8b8f36b4505 50 3,0x02, 0x00, 0x07, // 20
Pokitto 0:e8b8f36b4505 51 3,0x06, 0x03, 0x06, // 21
Pokitto 0:e8b8f36b4505 52 3,0x07, 0x07, 0x02, // 22
Pokitto 0:e8b8f36b4505 53 3,0x02, 0x05, 0x05, // 23
Pokitto 0:e8b8f36b4505 54 3,0x02, 0x01, 0x02, // 24
Pokitto 0:e8b8f36b4505 55 3,0x02, 0x04, 0x02, // 25
Pokitto 0:e8b8f36b4505 56 3,0x00, 0x05, 0x02, // 26
Pokitto 0:e8b8f36b4505 57 3,0x02, 0x05, 0x00, // 27
Pokitto 0:e8b8f36b4505 58 3,0x06, 0x07, 0x05, // 28
Pokitto 0:e8b8f36b4505 59 3,0x05, 0x07, 0x05, // 29
Pokitto 0:e8b8f36b4505 60 3,0x02, 0x03, 0x02, // 30
Pokitto 0:e8b8f36b4505 61 3,0x02, 0x06, 0x02, // 31
Pokitto 0:e8b8f36b4505 62 3,0x00, 0x00, 0x00, // 32
Pokitto 0:e8b8f36b4505 63 3,0x00, 0x0B, 0x00, // 33
Pokitto 0:e8b8f36b4505 64 3,0x03, 0x00, 0x03, // 34
Pokitto 0:e8b8f36b4505 65 3,0x07, 0x05, 0x07, // 35
Pokitto 0:e8b8f36b4505 66 3,0x04, 0x07, 0x01, // 36
Pokitto 0:e8b8f36b4505 67 3,0x05, 0x02, 0x05, // 37
Pokitto 0:e8b8f36b4505 68 3,0x07, 0x07, 0x04, // 38
Pokitto 0:e8b8f36b4505 69 3,0x00, 0x03, 0x00, // 39
Pokitto 0:e8b8f36b4505 70 3,0x00, 0x07, 0x05, // 40
Pokitto 0:e8b8f36b4505 71 3,0x05, 0x07, 0x00, // 41
Pokitto 0:e8b8f36b4505 72 3,0x05, 0x00, 0x05, // 42
Pokitto 0:e8b8f36b4505 73 3,0x02, 0x07, 0x02, // 43
Pokitto 0:e8b8f36b4505 74 3,0x00, 0x0C, 0x00, // 44
Pokitto 0:e8b8f36b4505 75 3,0x02, 0x02, 0x02, // 45
Pokitto 0:e8b8f36b4505 76 3,0x00, 0x04, 0x00, // 46
Pokitto 0:e8b8f36b4505 77 3,0x04, 0x02, 0x01, // 47
Pokitto 0:e8b8f36b4505 78 3,0x07, 0x05, 0x07, // 48
Pokitto 0:e8b8f36b4505 79 3,0x05, 0x07, 0x04, // 49
Pokitto 0:e8b8f36b4505 80 3,0x01, 0x07, 0x04, // 50
Pokitto 0:e8b8f36b4505 81 3,0x05, 0x07, 0x02, // 51
Pokitto 0:e8b8f36b4505 82 3,0x03, 0x02, 0x07, // 52
Pokitto 0:e8b8f36b4505 83 3,0x04, 0x07, 0x01, // 53
Pokitto 0:e8b8f36b4505 84 3,0x07, 0x06, 0x06, // 54
Pokitto 0:e8b8f36b4505 85 3,0x01, 0x01, 0x07, // 55
Pokitto 0:e8b8f36b4505 86 3,0x07, 0x07, 0x07, // 56
Pokitto 0:e8b8f36b4505 87 3,0x03, 0x03, 0x07, // 57
Pokitto 0:e8b8f36b4505 88 3,0x00, 0x05, 0x00, // 58
Pokitto 0:e8b8f36b4505 89 3,0x00, 0x0D, 0x00, // 59
Pokitto 0:e8b8f36b4505 90 3,0x02, 0x05, 0x00, // 60
Pokitto 0:e8b8f36b4505 91 3,0x05, 0x05, 0x05, // 61
Pokitto 0:e8b8f36b4505 92 3,0x00, 0x05, 0x02, // 62
Pokitto 0:e8b8f36b4505 93 3,0x01, 0x07, 0x03, // 63
Pokitto 0:e8b8f36b4505 94 3,0x0F, 0x09, 0x03, // 64
Pokitto 0:e8b8f36b4505 95 3,0x06, 0x03, 0x06, // 65
Pokitto 0:e8b8f36b4505 96 3,0x07, 0x07, 0x02, // 66
Pokitto 0:e8b8f36b4505 97 3,0x02, 0x05, 0x05, // 67
Pokitto 0:e8b8f36b4505 98 3,0x07, 0x07, 0x02, // 68
Pokitto 0:e8b8f36b4505 99 3,0x07, 0x07, 0x05, // 69
Pokitto 0:e8b8f36b4505 100 3,0x07, 0x03, 0x01, // 70
Pokitto 0:e8b8f36b4505 101 3,0x07, 0x05, 0x06, // 71
Pokitto 0:e8b8f36b4505 102 3,0x07, 0x02, 0x07, // 72
Pokitto 0:e8b8f36b4505 103 3,0x05, 0x07, 0x05, // 73
Pokitto 0:e8b8f36b4505 104 3,0x04, 0x04, 0x03, // 74
Pokitto 0:e8b8f36b4505 105 3,0x07, 0x02, 0x05, // 75
Pokitto 0:e8b8f36b4505 106 3,0x07, 0x04, 0x04, // 76
Pokitto 0:e8b8f36b4505 107 3,0x07, 0x03, 0x07, // 77
Pokitto 0:e8b8f36b4505 108 3,0x07, 0x01, 0x06, // 78
Pokitto 0:e8b8f36b4505 109 3,0x07, 0x05, 0x07, // 79
Pokitto 0:e8b8f36b4505 110 3,0x07, 0x03, 0x03, // 80
Pokitto 0:e8b8f36b4505 111 3,0x07, 0x05, 0x03, // 81
Pokitto 0:e8b8f36b4505 112 3,0x07, 0x03, 0x06, // 82
Pokitto 0:e8b8f36b4505 113 3,0x04, 0x07, 0x01, // 83
Pokitto 0:e8b8f36b4505 114 3,0x01, 0x07, 0x01, // 84
Pokitto 0:e8b8f36b4505 115 3,0x07, 0x04, 0x07, // 85
Pokitto 0:e8b8f36b4505 116 3,0x03, 0x04, 0x03, // 86
Pokitto 0:e8b8f36b4505 117 3,0x07, 0x06, 0x07, // 87
Pokitto 0:e8b8f36b4505 118 3,0x05, 0x02, 0x05, // 88
Pokitto 0:e8b8f36b4505 119 3,0x01, 0x06, 0x01, // 89
Pokitto 0:e8b8f36b4505 120 3,0x01, 0x07, 0x04, // 90
Pokitto 0:e8b8f36b4505 121 3,0x00, 0x07, 0x05, // 91
Pokitto 0:e8b8f36b4505 122 3,0x01, 0x02, 0x04, // 92
Pokitto 0:e8b8f36b4505 123 3,0x05, 0x07, 0x00, // 93
Pokitto 0:e8b8f36b4505 124 3,0x02, 0x01, 0x02, // 94
Pokitto 0:e8b8f36b4505 125 3,0x08, 0x08, 0x08, // 95
Pokitto 0:e8b8f36b4505 126 3,0x00, 0x03, 0x00, // 96
Pokitto 0:e8b8f36b4505 127 3,0x06, 0x03, 0x06, // 97
Pokitto 0:e8b8f36b4505 128 3,0x07, 0x07, 0x02, // 98
Pokitto 0:e8b8f36b4505 129 3,0x02, 0x05, 0x05, // 99
Pokitto 0:e8b8f36b4505 130 3,0x07, 0x05, 0x02, // 100
Pokitto 0:e8b8f36b4505 131 3,0x07, 0x07, 0x05, // 101
Pokitto 0:e8b8f36b4505 132 3,0x07, 0x03, 0x01, // 102
Pokitto 0:e8b8f36b4505 133 3,0x07, 0x05, 0x06, // 103
Pokitto 0:e8b8f36b4505 134 3,0x07, 0x02, 0x07, // 104
Pokitto 0:e8b8f36b4505 135 3,0x05, 0x07, 0x05, // 105
Pokitto 0:e8b8f36b4505 136 3,0x04, 0x04, 0x03, // 106
Pokitto 0:e8b8f36b4505 137 3,0x07, 0x02, 0x05, // 107
Pokitto 0:e8b8f36b4505 138 3,0x07, 0x04, 0x04, // 108
Pokitto 0:e8b8f36b4505 139 3,0x07, 0x03, 0x07, // 109
Pokitto 0:e8b8f36b4505 140 3,0x07, 0x01, 0x06, // 110
Pokitto 0:e8b8f36b4505 141 3,0x07, 0x05, 0x07, // 111
Pokitto 0:e8b8f36b4505 142 3,0x07, 0x03, 0x03, // 112
Pokitto 0:e8b8f36b4505 143 3,0x07, 0x05, 0x03, // 113
Pokitto 0:e8b8f36b4505 144 3,0x07, 0x03, 0x06, // 114
Pokitto 0:e8b8f36b4505 145 3,0x04, 0x07, 0x01, // 115
Pokitto 0:e8b8f36b4505 146 3,0x01, 0x07, 0x01, // 116
Pokitto 0:e8b8f36b4505 147 3,0x07, 0x04, 0x07, // 117
Pokitto 0:e8b8f36b4505 148 3,0x03, 0x04, 0x03, // 118
Pokitto 0:e8b8f36b4505 149 3,0x07, 0x06, 0x07, // 119
Pokitto 0:e8b8f36b4505 150 3,0x05, 0x02, 0x05, // 120
Pokitto 0:e8b8f36b4505 151 3,0x01, 0x06, 0x01, // 121
Pokitto 0:e8b8f36b4505 152 3,0x01, 0x07, 0x04, // 122
Pokitto 0:e8b8f36b4505 153 3,0x02, 0x07, 0x05, // 123
Pokitto 0:e8b8f36b4505 154 3,0x00, 0x07, 0x00, // 124
Pokitto 0:e8b8f36b4505 155 3,0x05, 0x07, 0x02, // 125
Pokitto 0:e8b8f36b4505 156 3,0x06, 0x02, 0x03, // 126
Pokitto 0:e8b8f36b4505 157 3,0x07, 0x05, 0x07 // 127
Pokitto 0:e8b8f36b4505 158 };
Pokitto 0:e8b8f36b4505 159
Pokitto 0:e8b8f36b4505 160 #endif
Pokitto 0:e8b8f36b4505 161