diff options
Diffstat (limited to 'code/src/font.h')
| -rw-r--r-- | code/src/font.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/code/src/font.h b/code/src/font.h new file mode 100644 index 0000000..08300f7 --- /dev/null +++ b/code/src/font.h @@ -0,0 +1,109 @@ +/* + Copyright 2021, tslil clingman + + This program 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. + + This program 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 + this program. If not, see <https://www.gnu.org/licenses/>. +*/ + +#include <avr/pgmspace.h> + +/* + 4x4 pixel blocks and 64x64 pixel blocks means 16x16 resolution + These are packed 8 into a byte, so 2 * 16 * 10 = 320 bytes + + The packing is as follows: b7 b6 b5 b4 b3 b2 b1 b0 + + --> b0 b2 b4 b6 + b1 b3 b5 b7 +*/ + + +PROGMEM const uint8_t font[320] = { +0x0, 0x50, 0x5, 0x0, +0x40, 0xA, 0xA0, 0x1, +0x90, 0x0, 0x0, 0x6, +0x30, 0x0, 0x0, 0xC, +0x30, 0x0, 0x0, 0xC, +0x60, 0x0, 0x0, 0x9, +0x80, 0x5, 0x50, 0x2, +0x0, 0xA0, 0xA, 0x0, +0x0, 0x0, 0x1, 0x0, +0x0, 0x90, 0x3, 0x0, +0x0, 0x8, 0x3, 0x0, +0x0, 0x0, 0x3, 0x0, +0x0, 0x0, 0x3, 0x0, +0x0, 0x0, 0x3, 0x0, +0x0, 0x0, 0x3, 0x0, +0x0, 0x0, 0x2, 0x0, +0x0, 0x50, 0x1, 0x0, +0x0, 0x8, 0x18, 0x0, +0x0, 0x0, 0x60, 0x0, +0x0, 0x0, 0xC0, 0x0, +0x0, 0x0, 0x90, 0x0, +0x0, 0x0, 0x24, 0x0, +0x0, 0xA4, 0x2, 0x0, +0x0, 0xA8, 0xAA, 0x0, +0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