Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
font5x7.cpp
00001 /* 00002 * (C) Copyright 2014 Aurélien Rodot. All rights reserved. 00003 * 00004 * This file is part of the Gamebuino Library (http://gamebuino.com) 00005 * 00006 * The Gamebuino Library is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public License 00017 * along with this program. If not, see <http://www.gnu.org/licenses/> 00018 */ 00019 00020 #ifndef FONT5X7_C 00021 #define FONT5X7_C 00022 00023 #include <stdint.h> 00024 #include "PokittoFonts.h " 00025 00026 #define PROGMEM 00027 00028 00029 // standard ascii 5x7 font 00030 const uint8_t font5x7[] PROGMEM = { 00031 5,7,0,0, // width and height, start char and only caps ? 00032 5, 0x7F, 0x41, 0x41, 0x41, 0x7F, // 0 00033 5, 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, // 1 sad 00034 5, 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, // 2 happy 00035 5, 0x18, 0x3C, 0x78, 0x3C, 0x18, // 3 heart 00036 5, 0x18, 0x3C, 0x7E, 0x3C, 0x18, // 4 diamond 00037 5, 0x1C, 0x57, 0x7D, 0x57, 0x1C, // 5 clover 00038 5, 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, // 6 spade 00039 5, 0x00, 0x7E, 0x43, 0x43, 0x7E, // 7 bat low 00040 5, 0x00, 0x7E, 0x73, 0x73, 0x7E, // 8 bat med 00041 5, 0x00, 0x7E, 0x7F, 0x7F, 0x7E, // 9 bat high 00042 5, 0x7F, 0x41, 0x41, 0x41, 0x7F, // 10 line feed 00043 5, 0x30, 0x48, 0x3A, 0x06, 0x0E, // 11 male 00044 5, 0x06, 0x29, 0x79, 0x29, 0x06, // 12 female 00045 5, 0x7F, 0x41, 0x41, 0x41, 0x7F, // 13 carriage return 00046 5, 0x60, 0x70, 0x3F, 0x02, 0x04, // 14 note 00047 5, 0x2A, 0x1C, 0x36, 0x1C, 0x2A, // 15 sun 00048 5, 0x7F, 0x3E, 0x1C, 0x08, 0x00, // 16 right triangle 00049 5, 0x00, 0x08, 0x1C, 0x3E, 0x7F, // 17 left triangle 00050 5, 0x14, 0x22, 0x7F, 0x22, 0x14, // 18 double arrow 00051 5, 0x3C, 0x3C, 0x3C, 0x7E, 0xFF, // 19 speaker 00052 5, 0x18, 0x42, 0x3C, 0x81, 0x7E, // 20 sound 00053 5, 0x3E, 0x63, 0x75, 0x63, 0x3E, // 21 A button 00054 5, 0x3E, 0x61, 0x6B, 0x63, 0x3E, // 22 B button 00055 5, 0x3E, 0x63, 0x6B, 0x6B, 0x3E, // 23 C button 00056 5, 0x04, 0x02, 0x7F, 0x02, 0x04, // 24 up arrow 00057 5, 0x10, 0x20, 0x7F, 0x20, 0x10, // 25 down arrow 00058 5, 0x08, 0x08, 0x2A, 0x1C, 0x08, // 26 right arrow 00059 5, 0x08, 0x1C, 0x2A, 0x08, 0x08, // 27 left arrow 00060 5, 0x14, 0x3E, 0x55, 0x41, 0x22, // 28 euro 00061 5, 0x63, 0x75, 0x69, 0x75, 0x63, // 29 timer 00062 5, 0x10, 0x18, 0x1C, 0x18, 0x10, // 30 up triangle 00063 5, 0x04, 0x0C, 0x1C, 0x0C, 0x04, // 31 down triangle 00064 5, 0x00, 0x00, 0x00, 0x00, 0x00, // 32 space 00065 5, 0x00, 0x00, 0x5F, 0x00, 0x00, // 33 00066 5, 0x00, 0x07, 0x00, 0x07, 0x00, // 34 00067 5, 0x14, 0x7F, 0x14, 0x7F, 0x14, // 35 00068 5, 0x04, 0x2A, 0x7F, 0x2A, 0x10, // 36 00069 5, 0x23, 0x13, 0x08, 0x64, 0x62, // 37 00070 5, 0x36, 0x49, 0x56, 0x20, 0x50, // 38 00071 5, 0x00, 0x08, 0x07, 0x03, 0x00, // 39 00072 5, 0x00, 0x1C, 0x22, 0x41, 0x00, // 40 00073 5, 0x00, 0x41, 0x22, 0x1C, 0x00, // 41 00074 5, 0x2A, 0x1C, 0x3E, 0x1C, 0x2A, // 42 00075 5, 0x08, 0x08, 0x3E, 0x08, 0x08, // 43 00076 5, 0x00, 0xE0, 0x60, 0x00, 0x00, // 44 00077 5, 0x08, 0x08, 0x08, 0x08, 0x08, // 45 00078 5, 0x00, 0x60, 0x60, 0x00, 0x00, // 46 00079 5, 0x60, 0x10, 0x08, 0x04, 0x03, // 47 00080 5, 0x3E, 0x51, 0x49, 0x45, 0x3E, // 48 0 00081 5, 0x00, 0x42, 0x7F, 0x40, 0x00, // 49 1 00082 5, 0x62, 0x51, 0x49, 0x49, 0x46, // 50 2 00083 5, 0x21, 0x41, 0x49, 0x4D, 0x33, // 51 3 00084 5, 0x18, 0x14, 0x12, 0x7F, 0x10, // 52 4 00085 5, 0x27, 0x45, 0x45, 0x45, 0x39, // 53 5 00086 5, 0x3C, 0x4A, 0x49, 0x49, 0x30, // 54 6 00087 5, 0x41, 0x21, 0x11, 0x09, 0x07, // 55 7 00088 5, 0x36, 0x49, 0x49, 0x49, 0x36, // 56 8 00089 5, 0x06, 0x49, 0x49, 0x29, 0x1E, // 57 9 00090 5, 0x00, 0x00, 0x24, 0x00, 0x00, // 58 00091 5, 0x00, 0x80, 0x64, 0x00, 0x00, // 59 00092 5, 0x08, 0x14, 0x22, 0x41, 0x00, // 60 00093 5, 0x14, 0x14, 0x14, 0x14, 0x14, // 61 00094 5, 0x00, 0x41, 0x22, 0x14, 0x08, // 62 00095 5, 0x02, 0x01, 0x59, 0x09, 0x06, // 63 00096 5, 0x3E, 0x41, 0x5D, 0x59, 0x4E, // 64 00097 5, 0x7C, 0x12, 0x11, 0x12, 0x7C, // 65 A 00098 5, 0x7F, 0x49, 0x49, 0x49, 0x36, // 66 B 00099 5, 0x3E, 0x41, 0x41, 0x41, 0x22, // 67 C 00100 5, 0x7F, 0x41, 0x41, 0x22, 0x1C, // 68 D 00101 5, 0x7F, 0x49, 0x49, 0x49, 0x41, // 69 E 00102 5, 0x7F, 0x09, 0x09, 0x09, 0x01, // 70 F 00103 5, 0x3E, 0x41, 0x41, 0x51, 0x32, // 71 G 00104 5, 0x7F, 0x08, 0x08, 0x08, 0x7F, // 72 H 00105 5, 0x00, 0x41, 0x7F, 0x41, 0x00, // 73 I 00106 5, 0x20, 0x41, 0x41, 0x3F, 0x01, // 74 J 00107 5, 0x7F, 0x08, 0x14, 0x22, 0x41, // 75 K 00108 5, 0x7F, 0x40, 0x40, 0x40, 0x40, // 76 L 00109 5, 0x7F, 0x02, 0x0C, 0x02, 0x7F, // 77 M 00110 5, 0x7F, 0x02, 0x04, 0x08, 0x7F, // 78 N 00111 5, 0x3E, 0x41, 0x41, 0x41, 0x3E, // 79 O 00112 5, 0x7F, 0x09, 0x09, 0x09, 0x06, // 80 P 00113 5, 0x3E, 0x41, 0x61, 0x41, 0xBE, // 81 Q 00114 5, 0x7F, 0x09, 0x19, 0x29, 0x46, // 82 R 00115 5, 0x26, 0x49, 0x49, 0x49, 0x32, // 83 S 00116 5, 0x01, 0x01, 0x7F, 0x01, 0x01, // 84 T 00117 5, 0x3F, 0x40, 0x40, 0x40, 0x3F, // 85 U 00118 5, 0x1F, 0x20, 0x40, 0x20, 0x1F, // 86 V 00119 5, 0x3F, 0x40, 0x38, 0x40, 0x3F, // 87 W 00120 5, 0x63, 0x14, 0x08, 0x14, 0x63, // 88 X 00121 5, 0x03, 0x04, 0x78, 0x04, 0x03, // 89 Y 00122 5, 0x61, 0x51, 0x49, 0x45, 0x43, // 90 Z 00123 5, 0x00, 0x7F, 0x41, 0x41, 0x00, // 91 00124 5, 0x03, 0x04, 0x08, 0x10, 0x60, // 92 00125 5, 0x00, 0x41, 0x41, 0x7F, 0x00, // 93 00126 5, 0x04, 0x02, 0x01, 0x02, 0x04, // 94 00127 5, 0x80, 0x80, 0x80, 0x80, 0x80, // 95 00128 5, 0x00, 0x03, 0x07, 0x08, 0x00, // 96 00129 5, 0x20, 0x54, 0x54, 0x78, 0x40, // 97 a 00130 5, 0x7F, 0x28, 0x44, 0x44, 0x38, // 98 b 00131 5, 0x38, 0x44, 0x44, 0x44, 0x28, // 99 c 00132 5, 0x38, 0x44, 0x44, 0x28, 0x7F, // 100 d 00133 5, 0x38, 0x54, 0x54, 0x54, 0x18, // 101 e 00134 5, 0x08, 0x7E, 0x09, 0x09, 0x02, // 102 f 00135 5, 0x18, 0xA4, 0xA4, 0x9C, 0x78, // 103 g 00136 5, 0x7F, 0x08, 0x04, 0x04, 0x78, // 104 h 00137 5, 0x00, 0x44, 0x7D, 0x40, 0x00, // 105 i 00138 5, 0x00, 0x60, 0x80, 0x84, 0x7D, // 106 j 00139 5, 0x7F, 0x10, 0x10, 0x28, 0x44, // 107 k 00140 5, 0x00, 0x41, 0x7F, 0x40, 0x00, // 108 l 00141 5, 0x7C, 0x04, 0x78, 0x04, 0x78, // 109 m 00142 5, 0x7C, 0x08, 0x04, 0x04, 0x78, // 110 n 00143 5, 0x38, 0x44, 0x44, 0x44, 0x38, // 111 o 00144 5, 0xFC, 0x18, 0x24, 0x24, 0x18, // 112 p 00145 5, 0x18, 0x24, 0x24, 0x18, 0xFC, // 113 q 00146 5, 0x7C, 0x08, 0x04, 0x04, 0x08, // 114 r 00147 5, 0x08, 0x54, 0x54, 0x54, 0x20, // 115 s 00148 5, 0x04, 0x3F, 0x44, 0x44, 0x20, // 116 t 00149 5, 0x3C, 0x40, 0x40, 0x20, 0x7C, // 117 u 00150 5, 0x1C, 0x20, 0x40, 0x20, 0x1C, // 118 v 00151 5, 0x3C, 0x40, 0x20, 0x40, 0x3C, // 119 w 00152 5, 0x44, 0x28, 0x10, 0x28, 0x44, // 120 x 00153 5, 0x4C, 0x90, 0x90, 0x90, 0x7C, // 121 y 00154 5, 0x44, 0x64, 0x54, 0x4C, 0x44, // 122 z 00155 5, 0x00, 0x08, 0x36, 0x41, 0x00, // 123 00156 5, 0x00, 0x00, 0x7F, 0x00, 0x00, // 124 00157 5, 0x00, 0x41, 0x36, 0x08, 0x00, // 125 00158 5, 0x18, 0x04, 0x08, 0x10, 0x0C, // 126 00159 5, 0x7F, 0x41, 0x41, 0x41, 0x7F // 127 00160 }; 00161 00162 #endif 00163
Generated on Tue Jul 12 2022 21:03:50 by
1.7.2