-
Notifications
You must be signed in to change notification settings - Fork 0
/
fonts.c
166 lines (159 loc) · 7.04 KB
/
fonts.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*
* Copyright 2019, Jacques Deschênes
* This file is part of BP_CHIPCON.
*
* BP_CHIPCON is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BP_CHIPCON is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BP_CHIPCON. If not, see <http://www.gnu.org/licenses/>.
*/
#include "fonts.h"
const uint8_t font_hex_4x6[16*SHEX_HEIGHT]={
0xe0,0xa0,0xa0,0xa0,0xe0,0x00, //0
0xc0,0x40,0x40,0x40,0xe0,0x00, //1
0xe0,0x20,0xe0,0x80,0xe0,0x00, //2
0xe0,0x20,0xe0,0x20,0xe0,0x00, //3
0xa0,0xa0,0xe0,0x20,0x20,0x00, //4
0xe0,0x80,0xe0,0x20,0xe0,0x00, //5
0x80,0x80,0xe0,0xa0,0xe0,0x00, //6
0xe0,0x20,0x20,0x20,0x20,0x00, //7
0xe0,0xa0,0xe0,0xa0,0xe0,0x00, //8
0xe0,0xa0,0xe0,0x20,0x20,0x00, //9
0xe0,0xa0,0xe0,0xa0,0xa0,0x00, //A
0xc0,0xa0,0xc0,0xa0,0xc0,0x00, //B
0xe0,0x80,0x80,0x80,0xe0,0x00, //C
0xc0,0xa0,0xa0,0xa0,0xc0,0x00, //D
0xe0,0x80,0xe0,0x80,0xe0,0x00, //E
0xe0,0x80,0xe0,0x80,0x80,0x00, //F
};
// police 8x10 hexadécimale
const uint8_t font_hex_8x10[16*LHEX_HEIGHT]={
0x7c,0x82,0x86,0x8a,0x92,0xa2,0xc2,0x82,0x7c,0x00, // 0
0x08,0x18,0x28,0x08,0x08,0x08,0x08,0x08,0x3e,0x00, // 1
0x38,0x44,0x82,0x04,0x08,0x10,0x20,0x40,0xfe,0x00, // 2
0x38,0x44,0x82,0x02,0x3c,0x02,0x82,0x44,0x38,0x00, // 3
0x84,0x84,0x84,0x84,0x7e,0x04,0x04,0x04,0x04,0x00, // 4
0x7e,0x80,0x80,0x80,0x7c,0x02,0x02,0x02,0xfe,0x00, // 5
0x78,0x84,0x80,0x80,0xfc,0x82,0x82,0x82,0x7c,0x00, // 6
0x7e,0x82,0x04,0x08,0x08,0x08,0x08,0x08,0x08,0x00, // 7
0x38,0x44,0x82,0x82,0x7c,0x82,0x82,0x44,0x38,0x00, // 8
0x38,0x44,0x82,0x82,0x46,0x3a,0x02,0x04,0x38,0x00, // 9
0x38,0x44,0x82,0x82,0xfe,0x82,0x82,0x82,0x82,0x00, // A
0xfc,0x82,0x82,0x82,0xfc,0x82,0x82,0x82,0xfc,0x00, // B
0x3e,0x40,0x80,0x80,0x80,0x80,0x80,0x40,0x3e,0x00, // C
0xf8,0x84,0x82,0x82,0x82,0x82,0x82,0x84,0xf8,0x00, // D
0xfe,0x80,0x80,0x80,0xfe,0x80,0x80,0x80,0xfe,0x00, // E
0xfe,0x80,0x80,0x80,0xfe,0x80,0x80,0x80,0x80,0x00, // F
};
// police 6x8 caract�res ASCII
const uint8_t font_6x8[FONT_SIZE*CHAR_HEIGHT]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // espace
0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00, // !
0x50,0x50,0x50,0x00,0x00,0x00,0x00,0x00, // "
0x50,0x50,0xF8,0x50,0xF8,0x50,0x50,0x00, // #
0x20,0x78,0xA0,0x70,0x28,0xF0,0x20,0x00, // $
0xC0,0xC8,0x10,0x20,0x40,0x98,0x18,0x00, // %
0x60,0x90,0xA0,0x40,0xA8,0x90,0x68,0x00, // &
0x60,0x20,0x40,0x00,0x00,0x00,0x00,0x00, // '
0x10,0x20,0x40,0x40,0x40,0x20,0x10,0x00, // (
0x40,0x20,0x10,0x10,0x10,0x20,0x40,0x00, // )
0x00,0x20,0xA8,0x70,0xA8,0x20,0x00,0x00, // *
0x00,0x20,0x20,0xF8,0x20,0x20,0x00,0x00, // +
0x00,0x00,0x00,0x00,0x60,0x20,0x40,0x00, // ,
0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00, // -
0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00, // .
0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00, // /
0x70,0x88,0x98,0xA8,0xC8,0x88,0x70,0x00, // 0
0x20,0x60,0x20,0x20,0x20,0x20,0xF8,0x00, // 1
0x70,0x88,0x10,0x20,0x40,0x80,0xF8,0x00, // 2
0xF0,0x08,0x08,0xF0,0x08,0x08,0xF0,0x00, // 3
0x10,0x30,0x50,0x90,0xF8,0x10,0x10,0x00, // 4
0xF8,0x80,0x80,0xF0,0x08,0x08,0xF0,0x00, // 5
0x30,0x40,0x80,0xF0,0x88,0x88,0x70,0x00, // 6
0xF8,0x08,0x10,0x20,0x40,0x40,0x40,0x00, // 7
0x70,0x88,0x88,0x70,0x88,0x88,0x70,0x00, // 8
0x70,0x88,0x88,0x70,0x08,0x08,0x70,0x00, // 9
0x00,0x60,0x60,0x00,0x60,0x60,0x00,0x00, // :
0x00,0x60,0x60,0x00,0x60,0x20,0x40,0x00, // ;
0x10,0x20,0x40,0x80,0x40,0x20,0x10,0x00, // <
0x00,0x00,0xF8,0x00,0xF8,0x00,0x00,0x00, // =
0x40,0x20,0x10,0x08,0x10,0x20,0x40,0x00, // >
0x70,0x88,0x08,0x10,0x20,0x00,0x20,0x00, // ?
0x70,0x88,0x08,0x68,0xA8,0xA8,0x70,0x00, // @
0x70,0x88,0x88,0xF8,0x88,0x88,0x88,0x00, // A
0xF0,0x88,0x88,0xF0,0x88,0x88,0xF0,0x00, // B
0x78,0x80,0x80,0x80,0x80,0x80,0x78,0x00, // C
0xF0,0x88,0x88,0x88,0x88,0x88,0xF0,0x00, // D
0xF8,0x80,0x80,0xF8,0x80,0x80,0xF8,0x00, // E
0xF8,0x80,0x80,0xF8,0x80,0x80,0x80,0x00, // F
0x78,0x80,0x80,0xB0,0x88,0x88,0x70,0x00, // G
0x88,0x88,0x88,0xF8,0x88,0x88,0x88,0x00, // H
0x70,0x20,0x20,0x20,0x20,0x20,0x70,0x00, // I
0x78,0x08,0x08,0x08,0x08,0x90,0x60,0x00, // J
0x88,0x90,0xA0,0xC0,0xA0,0x90,0x88,0x00, // K
0x80,0x80,0x80,0x80,0x80,0x80,0xF8,0x00, // Luint8
0x88,0xD8,0xA8,0x88,0x88,0x88,0x88,0x00, // M
0x88,0x88,0xC8,0xA8,0x98,0x88,0x88,0x00, // N
0x70,0x88,0x88,0x88,0x88,0x88,0x70,0x00, // O
0xF0,0x88,0x88,0xF0,0x80,0x80,0x80,0x00, // P
0x70,0x88,0x88,0x88,0xA8,0x98,0x78,0x00, // Q
0xF0,0x88,0x88,0xF0,0xA0,0x90,0x88,0x00, // R
0x78,0x80,0x80,0x70,0x08,0x08,0xF0,0x00, // S
0xF8,0x20,0x20,0x20,0x20,0x20,0x20,0x00, // T
0x88,0x88,0x88,0x88,0x88,0x88,0x70,0x00, // U
0x88,0x88,0x88,0x88,0x88,0x50,0x20,0x00, // V
0x88,0x88,0x88,0xA8,0xA8,0xD8,0x88,0x00, // W
0x88,0x88,0x50,0x20,0x50,0x88,0x88,0x00, // X
0x88,0x88,0x88,0x50,0x20,0x20,0x20,0x00, // Y
0xF8,0x10,0x20,0x40,0x80,0x80,0xF8,0x00, // Z
0x60,0x40,0x40,0x40,0x40,0x40,0x60,0x00, // [
0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00, // '\'
0x18,0x08,0x08,0x08,0x08,0x08,0x18,0x00, // ]
0x20,0x50,0x88,0x00,0x00,0x00,0x00,0x00, // ^
0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00, // _
0x40,0x20,0x10,0x00,0x00,0x00,0x00,0x00, // `
0x00,0x00,0x70,0x08,0x78,0x88,0x78,0x00, // a
0x80,0x80,0x80,0xB0,0xC8,0x88,0xF0,0x00, // b
0x00,0x00,0x70,0x80,0x80,0x88,0x70,0x00, // c
0x08,0x08,0x08,0x68,0x98,0x88,0x78,0x00, // d
0x00,0x00,0x70,0x88,0xF8,0x80,0x70,0x00, // e
0x30,0x48,0x40,0xE0,0x40,0x40,0x40,0x00, // f
0x00,0x00,0x78,0x88,0x88,0x78,0x08,0x70, // g
0x80,0x80,0xB0,0xC8,0x88,0x88,0x88,0x00, // h
0x00,0x20,0x00,0x20,0x20,0x20,0x20,0x00, // i
0x10,0x00,0x30,0x10,0x10,0x90,0x60,0x00, // j
0x80,0x80,0x90,0xA0,0xC0,0xA0,0x90,0x00, // k
0x60,0x20,0x20,0x20,0x20,0x20,0x70,0x00, // l
0x00,0x00,0xD0,0xA8,0xA8,0x88,0x88,0x00, // m
0x00,0x00,0xB0,0xC8,0x88,0x88,0x88,0x00, // n
0x00,0x00,0x70,0x88,0x88,0x88,0x70,0x00, // o
0x00,0x00,0xF0,0x88,0x88,0xF0,0x80,0x80, // p
0x00,0x00,0x68,0x90,0x90,0xB0,0x50,0x18, // q
0x00,0x00,0xB0,0xC8,0x80,0x80,0x80,0x00, // r
0x00,0x00,0x70,0x80,0x70,0x08,0xF0,0x00, // s
0x40,0x40,0xE0,0x40,0x40,0x48,0x30,0x00, // t
0x00,0x00,0x88,0x88,0x88,0x98,0x68,0x00, // u
0x00,0x00,0x88,0x88,0x88,0x50,0x20,0x00, // v
0x00,0x00,0x88,0x88,0xA8,0xA8,0x50,0x00, // w
0x00,0x00,0x88,0x50,0x20,0x50,0x88,0x00, // x
0x00,0x00,0x88,0x88,0x88,0x78,0x08,0x70, // y
0x00,0x00,0xF8,0x10,0x20,0x40,0xF8,0x00, // z
0x20,0x40,0x40,0x80,0x40,0x40,0x20,0x00, // {
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00, // |
0x40,0x20,0x20,0x10,0x20,0x20,0x40,0x00, // }
0x00,0x00,0x40,0xA8,0x10,0x00,0x00,0x00, // ~
0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC, // 95 rectangle
0x40,0x20,0x10,0xF8,0x10,0x20,0x40,0x00,// 96 flèche droite
0x10,0x20,0x40,0xF8,0x40,0x20,0x10,0x00,// 97 flèche gauche
0x20,0x70,0xA8,0x20,0x20,0x20,0x00,0x00,// 98 flèche haut
0x00,0x20,0x20,0x20,0xA8,0x70,0x20,0x00,// 99 flèche bas
0x00,0x70,0xF8,0xF8,0xF8,0x70,0x00,0x00,// 100 rond
};