Debian Codegraph @

ports/nrf/boards/MICROBIT/modules/microbitfont.h

raw
1 /*
2 The MIT License (MIT)
3
4 Copyright (c) 2016 British Broadcasting Corporation.
5 This software is provided by Lancaster University by arrangement with the BBC.
6
7 Permission is hereby granted, free of charge, to any person obtaining a
8 copy of this software and associated documentation files (the "Software"),
9 to deal in the Software without restriction, including without limitation
10 the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 and/or sell copies of the Software, and to permit persons to whom the
12 Software is furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 DEALINGS IN THE SOFTWARE.
24 */
25
26 /**
27 * A MicroBitFont is 5x5.
28 * Each Row is represented by a byte in the array.
29 *
30 * Row Format:
31 * ================================================================
32 * | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
33 * ================================================================
34 * | N/A | N/A | N/A | Col 1 | Col 2 | Col 3 | Col 4 | Col 5 |
35 * | 0x80 | 0x40 | 0x20 | 0x10 | 0x08 | 0x04 | 0x02 | 0x01 |
36 *
37 * Example: { 0x08, 0x08, 0x08, 0x0, 0x08 }
38 *
39 * The above will produce an exclamation mark on the second column in form the left.
40 *
41 * We could compress further, but the complexity of decode would likely outweigh the gains.
42 */
43
44 #ifndef MICROPY_INCLUDED_NRF_BOARD_MICROBIT_MICROBITFONT_H
45 #define MICROPY_INCLUDED_NRF_BOARD_MICROBIT_MICROBITFONT_H
46
47 const unsigned char font_pendolino3_5x5_pad3msb[475] = {
48 0x0, 0x0, 0x0, 0x0, 0x0,
49 0x8, 0x8, 0x8, 0x0, 0x8,
50 0xa, 0x4a, 0x40, 0x0, 0x0,
51 0xa, 0x5f, 0xea, 0x5f, 0xea,
52 0xe, 0xd9, 0x2e, 0xd3, 0x6e,
53 0x19, 0x32, 0x44, 0x89, 0x33,
54 0xc, 0x92, 0x4c, 0x92, 0x4d,
55 0x8, 0x8, 0x0, 0x0, 0x0,
56 0x4, 0x88, 0x8, 0x8, 0x4,
57 0x8, 0x4, 0x84, 0x84, 0x88,
58 0x0, 0xa, 0x44, 0x8a, 0x40,
59 0x0, 0x4, 0x8e, 0xc4, 0x80,
60 0x0, 0x0, 0x0, 0x4, 0x88,
61 0x0, 0x0, 0xe, 0xc0, 0x0,
62 0x0, 0x0, 0x0, 0x8, 0x0,
63 0x1, 0x22, 0x44, 0x88, 0x10,
64 0xc, 0x92, 0x52, 0x52, 0x4c,
65 0x4, 0x8c, 0x84, 0x84, 0x8e,
66 0x1c, 0x82, 0x4c, 0x90, 0x1e,
67 0x1e, 0xc2, 0x44, 0x92, 0x4c,
68 0x6, 0xca, 0x52, 0x5f, 0xe2,
69 0x1f, 0xf0, 0x1e, 0xc1, 0x3e,
70 0x2, 0x44, 0x8e, 0xd1, 0x2e,
71 0x1f, 0xe2, 0x44, 0x88, 0x10,
72 0xe, 0xd1, 0x2e, 0xd1, 0x2e,
73 0xe, 0xd1, 0x2e, 0xc4, 0x88,
74 0x0, 0x8, 0x0, 0x8, 0x0,
75 0x0, 0x4, 0x80, 0x4, 0x88,
76 0x2, 0x44, 0x88, 0x4, 0x82,
77 0x0, 0xe, 0xc0, 0xe, 0xc0,
78 0x8, 0x4, 0x82, 0x44, 0x88,
79 0xe, 0xd1, 0x26, 0xc0, 0x4,
80 0xe, 0xd1, 0x35, 0xb3, 0x6c,
81 0xc, 0x92, 0x5e, 0xd2, 0x52,
82 0x1c, 0x92, 0x5c, 0x92, 0x5c,
83 0xe, 0xd0, 0x10, 0x10, 0xe,
84 0x1c, 0x92, 0x52, 0x52, 0x5c,
85 0x1e, 0xd0, 0x1c, 0x90, 0x1e,
86 0x1e, 0xd0, 0x1c, 0x90, 0x10,
87 0xe, 0xd0, 0x13, 0x71, 0x2e,
88 0x12, 0x52, 0x5e, 0xd2, 0x52,
89 0x1c, 0x88, 0x8, 0x8, 0x1c,
90 0x1f, 0xe2, 0x42, 0x52, 0x4c,
91 0x12, 0x54, 0x98, 0x14, 0x92,
92 0x10, 0x10, 0x10, 0x10, 0x1e,
93 0x11, 0x3b, 0x75, 0xb1, 0x31,
94 0x11, 0x39, 0x35, 0xb3, 0x71,
95 0xc, 0x92, 0x52, 0x52, 0x4c,
96 0x1c, 0x92, 0x5c, 0x90, 0x10,
97 0xc, 0x92, 0x52, 0x4c, 0x86,
98 0x1c, 0x92, 0x5c, 0x92, 0x51,
99 0xe, 0xd0, 0xc, 0x82, 0x5c,
100 0x1f, 0xe4, 0x84, 0x84, 0x84,
101 0x12, 0x52, 0x52, 0x52, 0x4c,
102 0x11, 0x31, 0x31, 0x2a, 0x44,
103 0x11, 0x31, 0x35, 0xbb, 0x71,
104 0x12, 0x52, 0x4c, 0x92, 0x52,
105 0x11, 0x2a, 0x44, 0x84, 0x84,
106 0x1e, 0xc4, 0x88, 0x10, 0x1e,
107 0xe, 0xc8, 0x8, 0x8, 0xe,
108 0x10, 0x8, 0x4, 0x82, 0x41,
109 0xe, 0xc2, 0x42, 0x42, 0x4e,
110 0x4, 0x8a, 0x40, 0x0, 0x0,
111 0x0, 0x0, 0x0, 0x0, 0x1f,
112 0x8, 0x4, 0x80, 0x0, 0x0,
113 0x0, 0xe, 0xd2, 0x52, 0x4f,
114 0x10, 0x10, 0x1c, 0x92, 0x5c,
115 0x0, 0xe, 0xd0, 0x10, 0xe,
116 0x2, 0x42, 0x4e, 0xd2, 0x4e,
117 0xc, 0x92, 0x5c, 0x90, 0xe,
118 0x6, 0xc8, 0x1c, 0x88, 0x8,
119 0xe, 0xd2, 0x4e, 0xc2, 0x4c,
120 0x10, 0x10, 0x1c, 0x92, 0x52,
121 0x8, 0x0, 0x8, 0x8, 0x8,
122 0x2, 0x40, 0x2, 0x42, 0x4c,
123 0x10, 0x14, 0x98, 0x14, 0x92,
124 0x8, 0x8, 0x8, 0x8, 0x6,
125 0x0, 0x1b, 0x75, 0xb1, 0x31,
126 0x0, 0x1c, 0x92, 0x52, 0x52,
127 0x0, 0xc, 0x92, 0x52, 0x4c,
128 0x0, 0x1c, 0x92, 0x5c, 0x90,
129 0x0, 0xe, 0xd2, 0x4e, 0xc2,
130 0x0, 0xe, 0xd0, 0x10, 0x10,
131 0x0, 0x6, 0xc8, 0x4, 0x98,
132 0x8, 0x8, 0xe, 0xc8, 0x7,
133 0x0, 0x12, 0x52, 0x52, 0x4f,
134 0x0, 0x11, 0x31, 0x2a, 0x44,
135 0x0, 0x11, 0x31, 0x35, 0xbb,
136 0x0, 0x12, 0x4c, 0x8c, 0x92,
137 0x0, 0x11, 0x2a, 0x44, 0x98,
138 0x0, 0x1e, 0xc4, 0x88, 0x1e,
139 0x6, 0xc4, 0x8c, 0x84, 0x86,
140 0x8, 0x8, 0x8, 0x8, 0x8,
141 0x18, 0x8, 0xc, 0x88, 0x18,
142 0x0, 0x0, 0xc, 0x83, 0x60
143 };
144
145 #endif // MICROPY_INCLUDED_NRF_BOARD_MICROBIT_MICROBITFONT_H