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

Committer:
Pokitto
Date:
Mon Sep 18 11:47:51 2017 +0000
Revision:
0:e8b8f36b4505
Initial;

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 FONT5X7_C
Pokitto 0:e8b8f36b4505 21 #define FONT5X7_C
Pokitto 0:e8b8f36b4505 22
Pokitto 0:e8b8f36b4505 23 #include <stdint.h>
Pokitto 0:e8b8f36b4505 24 #include "PokittoFonts.h"
Pokitto 0:e8b8f36b4505 25
Pokitto 0:e8b8f36b4505 26 #define PROGMEM
Pokitto 0:e8b8f36b4505 27
Pokitto 0:e8b8f36b4505 28
Pokitto 0:e8b8f36b4505 29 // standard ascii 5x7 font
Pokitto 0:e8b8f36b4505 30 const uint8_t font5x7[] PROGMEM = {
Pokitto 0:e8b8f36b4505 31 5,7,0,0, // width and height, start char and only caps ?
Pokitto 0:e8b8f36b4505 32 5, 0x7F, 0x41, 0x41, 0x41, 0x7F, // 0
Pokitto 0:e8b8f36b4505 33 5, 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, // 1 sad
Pokitto 0:e8b8f36b4505 34 5, 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, // 2 happy
Pokitto 0:e8b8f36b4505 35 5, 0x18, 0x3C, 0x78, 0x3C, 0x18, // 3 heart
Pokitto 0:e8b8f36b4505 36 5, 0x18, 0x3C, 0x7E, 0x3C, 0x18, // 4 diamond
Pokitto 0:e8b8f36b4505 37 5, 0x1C, 0x57, 0x7D, 0x57, 0x1C, // 5 clover
Pokitto 0:e8b8f36b4505 38 5, 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, // 6 spade
Pokitto 0:e8b8f36b4505 39 5, 0x00, 0x7E, 0x43, 0x43, 0x7E, // 7 bat low
Pokitto 0:e8b8f36b4505 40 5, 0x00, 0x7E, 0x73, 0x73, 0x7E, // 8 bat med
Pokitto 0:e8b8f36b4505 41 5, 0x00, 0x7E, 0x7F, 0x7F, 0x7E, // 9 bat high
Pokitto 0:e8b8f36b4505 42 5, 0x7F, 0x41, 0x41, 0x41, 0x7F, // 10 line feed
Pokitto 0:e8b8f36b4505 43 5, 0x30, 0x48, 0x3A, 0x06, 0x0E, // 11 male
Pokitto 0:e8b8f36b4505 44 5, 0x06, 0x29, 0x79, 0x29, 0x06, // 12 female
Pokitto 0:e8b8f36b4505 45 5, 0x7F, 0x41, 0x41, 0x41, 0x7F, // 13 carriage return
Pokitto 0:e8b8f36b4505 46 5, 0x60, 0x70, 0x3F, 0x02, 0x04, // 14 note
Pokitto 0:e8b8f36b4505 47 5, 0x2A, 0x1C, 0x36, 0x1C, 0x2A, // 15 sun
Pokitto 0:e8b8f36b4505 48 5, 0x7F, 0x3E, 0x1C, 0x08, 0x00, // 16 right triangle
Pokitto 0:e8b8f36b4505 49 5, 0x00, 0x08, 0x1C, 0x3E, 0x7F, // 17 left triangle
Pokitto 0:e8b8f36b4505 50 5, 0x14, 0x22, 0x7F, 0x22, 0x14, // 18 double arrow
Pokitto 0:e8b8f36b4505 51 5, 0x3C, 0x3C, 0x3C, 0x7E, 0xFF, // 19 speaker
Pokitto 0:e8b8f36b4505 52 5, 0x18, 0x42, 0x3C, 0x81, 0x7E, // 20 sound
Pokitto 0:e8b8f36b4505 53 5, 0x3E, 0x63, 0x75, 0x63, 0x3E, // 21 A button
Pokitto 0:e8b8f36b4505 54 5, 0x3E, 0x61, 0x6B, 0x63, 0x3E, // 22 B button
Pokitto 0:e8b8f36b4505 55 5, 0x3E, 0x63, 0x6B, 0x6B, 0x3E, // 23 C button
Pokitto 0:e8b8f36b4505 56 5, 0x04, 0x02, 0x7F, 0x02, 0x04, // 24 up arrow
Pokitto 0:e8b8f36b4505 57 5, 0x10, 0x20, 0x7F, 0x20, 0x10, // 25 down arrow
Pokitto 0:e8b8f36b4505 58 5, 0x08, 0x08, 0x2A, 0x1C, 0x08, // 26 right arrow
Pokitto 0:e8b8f36b4505 59 5, 0x08, 0x1C, 0x2A, 0x08, 0x08, // 27 left arrow
Pokitto 0:e8b8f36b4505 60 5, 0x14, 0x3E, 0x55, 0x41, 0x22, // 28 euro
Pokitto 0:e8b8f36b4505 61 5, 0x63, 0x75, 0x69, 0x75, 0x63, // 29 timer
Pokitto 0:e8b8f36b4505 62 5, 0x10, 0x18, 0x1C, 0x18, 0x10, // 30 up triangle
Pokitto 0:e8b8f36b4505 63 5, 0x04, 0x0C, 0x1C, 0x0C, 0x04, // 31 down triangle
Pokitto 0:e8b8f36b4505 64 5, 0x00, 0x00, 0x00, 0x00, 0x00, // 32 space
Pokitto 0:e8b8f36b4505 65 5, 0x00, 0x00, 0x5F, 0x00, 0x00, // 33
Pokitto 0:e8b8f36b4505 66 5, 0x00, 0x07, 0x00, 0x07, 0x00, // 34
Pokitto 0:e8b8f36b4505 67 5, 0x14, 0x7F, 0x14, 0x7F, 0x14, // 35
Pokitto 0:e8b8f36b4505 68 5, 0x04, 0x2A, 0x7F, 0x2A, 0x10, // 36
Pokitto 0:e8b8f36b4505 69 5, 0x23, 0x13, 0x08, 0x64, 0x62, // 37
Pokitto 0:e8b8f36b4505 70 5, 0x36, 0x49, 0x56, 0x20, 0x50, // 38
Pokitto 0:e8b8f36b4505 71 5, 0x00, 0x08, 0x07, 0x03, 0x00, // 39
Pokitto 0:e8b8f36b4505 72 5, 0x00, 0x1C, 0x22, 0x41, 0x00, // 40
Pokitto 0:e8b8f36b4505 73 5, 0x00, 0x41, 0x22, 0x1C, 0x00, // 41
Pokitto 0:e8b8f36b4505 74 5, 0x2A, 0x1C, 0x3E, 0x1C, 0x2A, // 42
Pokitto 0:e8b8f36b4505 75 5, 0x08, 0x08, 0x3E, 0x08, 0x08, // 43
Pokitto 0:e8b8f36b4505 76 5, 0x00, 0xE0, 0x60, 0x00, 0x00, // 44
Pokitto 0:e8b8f36b4505 77 5, 0x08, 0x08, 0x08, 0x08, 0x08, // 45
Pokitto 0:e8b8f36b4505 78 5, 0x00, 0x60, 0x60, 0x00, 0x00, // 46
Pokitto 0:e8b8f36b4505 79 5, 0x60, 0x10, 0x08, 0x04, 0x03, // 47
Pokitto 0:e8b8f36b4505 80 5, 0x3E, 0x51, 0x49, 0x45, 0x3E, // 48 0
Pokitto 0:e8b8f36b4505 81 5, 0x00, 0x42, 0x7F, 0x40, 0x00, // 49 1
Pokitto 0:e8b8f36b4505 82 5, 0x62, 0x51, 0x49, 0x49, 0x46, // 50 2
Pokitto 0:e8b8f36b4505 83 5, 0x21, 0x41, 0x49, 0x4D, 0x33, // 51 3
Pokitto 0:e8b8f36b4505 84 5, 0x18, 0x14, 0x12, 0x7F, 0x10, // 52 4
Pokitto 0:e8b8f36b4505 85 5, 0x27, 0x45, 0x45, 0x45, 0x39, // 53 5
Pokitto 0:e8b8f36b4505 86 5, 0x3C, 0x4A, 0x49, 0x49, 0x30, // 54 6
Pokitto 0:e8b8f36b4505 87 5, 0x41, 0x21, 0x11, 0x09, 0x07, // 55 7
Pokitto 0:e8b8f36b4505 88 5, 0x36, 0x49, 0x49, 0x49, 0x36, // 56 8
Pokitto 0:e8b8f36b4505 89 5, 0x06, 0x49, 0x49, 0x29, 0x1E, // 57 9
Pokitto 0:e8b8f36b4505 90 5, 0x00, 0x00, 0x24, 0x00, 0x00, // 58
Pokitto 0:e8b8f36b4505 91 5, 0x00, 0x80, 0x64, 0x00, 0x00, // 59
Pokitto 0:e8b8f36b4505 92 5, 0x08, 0x14, 0x22, 0x41, 0x00, // 60
Pokitto 0:e8b8f36b4505 93 5, 0x14, 0x14, 0x14, 0x14, 0x14, // 61
Pokitto 0:e8b8f36b4505 94 5, 0x00, 0x41, 0x22, 0x14, 0x08, // 62
Pokitto 0:e8b8f36b4505 95 5, 0x02, 0x01, 0x59, 0x09, 0x06, // 63
Pokitto 0:e8b8f36b4505 96 5, 0x3E, 0x41, 0x5D, 0x59, 0x4E, // 64
Pokitto 0:e8b8f36b4505 97 5, 0x7C, 0x12, 0x11, 0x12, 0x7C, // 65 A
Pokitto 0:e8b8f36b4505 98 5, 0x7F, 0x49, 0x49, 0x49, 0x36, // 66 B
Pokitto 0:e8b8f36b4505 99 5, 0x3E, 0x41, 0x41, 0x41, 0x22, // 67 C
Pokitto 0:e8b8f36b4505 100 5, 0x7F, 0x41, 0x41, 0x22, 0x1C, // 68 D
Pokitto 0:e8b8f36b4505 101 5, 0x7F, 0x49, 0x49, 0x49, 0x41, // 69 E
Pokitto 0:e8b8f36b4505 102 5, 0x7F, 0x09, 0x09, 0x09, 0x01, // 70 F
Pokitto 0:e8b8f36b4505 103 5, 0x3E, 0x41, 0x41, 0x51, 0x32, // 71 G
Pokitto 0:e8b8f36b4505 104 5, 0x7F, 0x08, 0x08, 0x08, 0x7F, // 72 H
Pokitto 0:e8b8f36b4505 105 5, 0x00, 0x41, 0x7F, 0x41, 0x00, // 73 I
Pokitto 0:e8b8f36b4505 106 5, 0x20, 0x41, 0x41, 0x3F, 0x01, // 74 J
Pokitto 0:e8b8f36b4505 107 5, 0x7F, 0x08, 0x14, 0x22, 0x41, // 75 K
Pokitto 0:e8b8f36b4505 108 5, 0x7F, 0x40, 0x40, 0x40, 0x40, // 76 L
Pokitto 0:e8b8f36b4505 109 5, 0x7F, 0x02, 0x0C, 0x02, 0x7F, // 77 M
Pokitto 0:e8b8f36b4505 110 5, 0x7F, 0x02, 0x04, 0x08, 0x7F, // 78 N
Pokitto 0:e8b8f36b4505 111 5, 0x3E, 0x41, 0x41, 0x41, 0x3E, // 79 O
Pokitto 0:e8b8f36b4505 112 5, 0x7F, 0x09, 0x09, 0x09, 0x06, // 80 P
Pokitto 0:e8b8f36b4505 113 5, 0x3E, 0x41, 0x61, 0x41, 0xBE, // 81 Q
Pokitto 0:e8b8f36b4505 114 5, 0x7F, 0x09, 0x19, 0x29, 0x46, // 82 R
Pokitto 0:e8b8f36b4505 115 5, 0x26, 0x49, 0x49, 0x49, 0x32, // 83 S
Pokitto 0:e8b8f36b4505 116 5, 0x01, 0x01, 0x7F, 0x01, 0x01, // 84 T
Pokitto 0:e8b8f36b4505 117 5, 0x3F, 0x40, 0x40, 0x40, 0x3F, // 85 U
Pokitto 0:e8b8f36b4505 118 5, 0x1F, 0x20, 0x40, 0x20, 0x1F, // 86 V
Pokitto 0:e8b8f36b4505 119 5, 0x3F, 0x40, 0x38, 0x40, 0x3F, // 87 W
Pokitto 0:e8b8f36b4505 120 5, 0x63, 0x14, 0x08, 0x14, 0x63, // 88 X
Pokitto 0:e8b8f36b4505 121 5, 0x03, 0x04, 0x78, 0x04, 0x03, // 89 Y
Pokitto 0:e8b8f36b4505 122 5, 0x61, 0x51, 0x49, 0x45, 0x43, // 90 Z
Pokitto 0:e8b8f36b4505 123 5, 0x00, 0x7F, 0x41, 0x41, 0x00, // 91
Pokitto 0:e8b8f36b4505 124 5, 0x03, 0x04, 0x08, 0x10, 0x60, // 92
Pokitto 0:e8b8f36b4505 125 5, 0x00, 0x41, 0x41, 0x7F, 0x00, // 93
Pokitto 0:e8b8f36b4505 126 5, 0x04, 0x02, 0x01, 0x02, 0x04, // 94
Pokitto 0:e8b8f36b4505 127 5, 0x80, 0x80, 0x80, 0x80, 0x80, // 95
Pokitto 0:e8b8f36b4505 128 5, 0x00, 0x03, 0x07, 0x08, 0x00, // 96
Pokitto 0:e8b8f36b4505 129 5, 0x20, 0x54, 0x54, 0x78, 0x40, // 97 a
Pokitto 0:e8b8f36b4505 130 5, 0x7F, 0x28, 0x44, 0x44, 0x38, // 98 b
Pokitto 0:e8b8f36b4505 131 5, 0x38, 0x44, 0x44, 0x44, 0x28, // 99 c
Pokitto 0:e8b8f36b4505 132 5, 0x38, 0x44, 0x44, 0x28, 0x7F, // 100 d
Pokitto 0:e8b8f36b4505 133 5, 0x38, 0x54, 0x54, 0x54, 0x18, // 101 e
Pokitto 0:e8b8f36b4505 134 5, 0x08, 0x7E, 0x09, 0x09, 0x02, // 102 f
Pokitto 0:e8b8f36b4505 135 5, 0x18, 0xA4, 0xA4, 0x9C, 0x78, // 103 g
Pokitto 0:e8b8f36b4505 136 5, 0x7F, 0x08, 0x04, 0x04, 0x78, // 104 h
Pokitto 0:e8b8f36b4505 137 5, 0x00, 0x44, 0x7D, 0x40, 0x00, // 105 i
Pokitto 0:e8b8f36b4505 138 5, 0x00, 0x60, 0x80, 0x84, 0x7D, // 106 j
Pokitto 0:e8b8f36b4505 139 5, 0x7F, 0x10, 0x10, 0x28, 0x44, // 107 k
Pokitto 0:e8b8f36b4505 140 5, 0x00, 0x41, 0x7F, 0x40, 0x00, // 108 l
Pokitto 0:e8b8f36b4505 141 5, 0x7C, 0x04, 0x78, 0x04, 0x78, // 109 m
Pokitto 0:e8b8f36b4505 142 5, 0x7C, 0x08, 0x04, 0x04, 0x78, // 110 n
Pokitto 0:e8b8f36b4505 143 5, 0x38, 0x44, 0x44, 0x44, 0x38, // 111 o
Pokitto 0:e8b8f36b4505 144 5, 0xFC, 0x18, 0x24, 0x24, 0x18, // 112 p
Pokitto 0:e8b8f36b4505 145 5, 0x18, 0x24, 0x24, 0x18, 0xFC, // 113 q
Pokitto 0:e8b8f36b4505 146 5, 0x7C, 0x08, 0x04, 0x04, 0x08, // 114 r
Pokitto 0:e8b8f36b4505 147 5, 0x08, 0x54, 0x54, 0x54, 0x20, // 115 s
Pokitto 0:e8b8f36b4505 148 5, 0x04, 0x3F, 0x44, 0x44, 0x20, // 116 t
Pokitto 0:e8b8f36b4505 149 5, 0x3C, 0x40, 0x40, 0x20, 0x7C, // 117 u
Pokitto 0:e8b8f36b4505 150 5, 0x1C, 0x20, 0x40, 0x20, 0x1C, // 118 v
Pokitto 0:e8b8f36b4505 151 5, 0x3C, 0x40, 0x20, 0x40, 0x3C, // 119 w
Pokitto 0:e8b8f36b4505 152 5, 0x44, 0x28, 0x10, 0x28, 0x44, // 120 x
Pokitto 0:e8b8f36b4505 153 5, 0x4C, 0x90, 0x90, 0x90, 0x7C, // 121 y
Pokitto 0:e8b8f36b4505 154 5, 0x44, 0x64, 0x54, 0x4C, 0x44, // 122 z
Pokitto 0:e8b8f36b4505 155 5, 0x00, 0x08, 0x36, 0x41, 0x00, // 123
Pokitto 0:e8b8f36b4505 156 5, 0x00, 0x00, 0x7F, 0x00, 0x00, // 124
Pokitto 0:e8b8f36b4505 157 5, 0x00, 0x41, 0x36, 0x08, 0x00, // 125
Pokitto 0:e8b8f36b4505 158 5, 0x18, 0x04, 0x08, 0x10, 0x0C, // 126
Pokitto 0:e8b8f36b4505 159 5, 0x7F, 0x41, 0x41, 0x41, 0x7F // 127
Pokitto 0:e8b8f36b4505 160 };
Pokitto 0:e8b8f36b4505 161
Pokitto 0:e8b8f36b4505 162 #endif
Pokitto 0:e8b8f36b4505 163