-
Notifications
You must be signed in to change notification settings - Fork 7
/
core-flash-content.c
125 lines (122 loc) · 5.2 KB
/
core-flash-content.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
/*
* BlinkenButton
* core-flash-content.c
*
* This file contains animations you probably don't want to change,
* the font to render the text.
*
* http://interactive-matter.eu/
*
* This file is part of BlinkenButton.
*
* Blinken Button 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.
*
* Blinken Button 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 Blinken Button. If not, see <http://www.gnu.org/licenses/>.
*
* Created on: 28.01.2011
* Author: Marcus, Interactive Matter
*/
//include the definitions for our chip, like pins, ports & so on
#include <avr/io.h>
//since we define stuff for the flash memory we need the routines and definitions
//for the flash
#include <avr/pgmspace.h>
//include our own definitions
#include "core-flash-content.h"
const prog_uint8_t default_sprites[][8] = {
{
0x0F, // ____XXXX 12
0x0F, // ____XXXX
0x0F, // ____XXXX
0x0F, // ____XXXX
0xF0, // XXXX____
0xF0, // XXXX____
0xF0, // XXXX____
0xF0, // XXXX____
},
{
0xF0, // XXXX____ 13
0xF0, // XXXX____
0xF0, // XXXX____
0xF0, // XXXX____
0x0F, // ____XXXX
0x0F, // ____XXXX
0x0F, // ____XXXX
0x0F, // ____XXXX
}
};
const prog_uint8_t font[] = {
// 3 chars bitmap, 1 char length
0x00, 0x00, 0x00, 0x01 , // 0x20, 32, ' '
0x17, 0x00, 0x00, 0x01 , // 0x21, 33, !
0x03, 0x00, 0x03, 0x03 , // 0x22, 34, "
0x00, 0x00, 0x00, 0x03 , // 0x23, 35, #
0x00, 0x00, 0x00, 0x03 , // 0x24, 36, $
0x00, 0x00, 0x00, 0x03 , // 0x25, 37, %
0x00, 0x00, 0x00, 0x03 , // 0x26, 38, &
0x03, 0x00, 0x00, 0x01 , // 0x27, 39, '
0x0e, 0x11, 0x00, 0x02 , // 0x28, 40, (
0x11, 0x0e, 0x00, 0x02 , // 0x29, 41, )
0x00, 0x00, 0x00, 0x03 , // 0x2A, 42, *
0x08, 0x1c, 0x08, 0x03 , // 0x2B, 43, +
0x18, 0x00, 0x00, 0x01 , // 0x2C, 44, ,
0x04, 0x04, 0x00, 0x03 , // 0x2D, 45, -
0x10, 0x00, 0x00, 0x01 , // 0x2E, 46, .
0x18, 0x04, 0x03, 0x03 , // 0x2F, 47, /
0x1f, 0x11, 0x1f, 0x03 , // 0x30, 48, 0
0x01, 0x1f, 0x00, 0x02 , // 0x31, 49, 1
0x1d, 0x15, 0x17, 0x03 , // 0x32, 50, 2
0x15, 0x15, 0x0e, 0x03 , // 0x33, 51, 3
0x0f, 0x08, 0x1f, 0x03 , // 0x34, 52, 4
0x17, 0x15, 0x1d, 0x03 , // 0x35, 53, 5
0x1f, 0x12, 0x1e, 0x03 , // 0x36, 54, 6
0x11, 0x09, 0x07, 0x03 , // 0x37, 55, 7
0x1f, 0x15, 0x1f, 0x03 , // 0x38, 56, 8
0x0f, 0x09, 0x1f, 0x03 , // 0x39, 57, 9
0x0a, 0x00, 0x00, 0x01 , // 0x3A, 58, :
0x1a, 0x00, 0x00, 0x01 , // 0x3B, 59, ;
0x08, 0x14, 0x00, 0x02 , // 0x3C, 60, <
0x14, 0x14, 0x00, 0x02 , // 0x3D, 61, =
0x14, 0x08, 0x00, 0x02 , // 0x3E, 62, >
0x15, 0x05, 0x02, 0x03 , // 0x3F, 63, ?
0x0e, 0x17, 0x16, 0x03 , // 0x40, 64, @
0x1f, 0x09, 0x1e, 0x03 , // 0x41, 65, A
0x1f, 0x15, 0x0a, 0x03 , // 0x42, 66, B
0x0e, 0x11, 0x11, 0x03 , // 0x43, 67, C
0x1f, 0x11, 0x0e, 0x03 , // 0x44, 68, D
0x0e, 0x15, 0x15, 0x03 , // 0x45, 69, E
0x1e, 0x05, 0x05, 0x03 , // 0x46, 70, F
0x0e, 0x11, 0x1d, 0x03 , // 0x47, 71, G
0x1f, 0x04, 0x1f, 0x03 , // 0x48, 72, H
0x1f, 0x00, 0x00, 0x01 , // 0x49, 73, I
0x08, 0x10, 0x0f, 0x03 , // 0x4A, 74, J
0x1f, 0x04, 0x1b, 0x03 , // 0x4B, 75, K
0x0f, 0x10, 0x10, 0x03 , // 0x4C, 76, L
0x1f, 0x02, 0x1f, 0x03 , // 0x4D, 77, M
0x1f, 0x01, 0x1e, 0x03 , // 0x4E, 78, N
0x0e, 0x11, 0x0e, 0x03 , // 0x4F, 79, O
0x1f, 0x09, 0x06, 0x03 , // 0x50, 80, P
0x06, 0x19, 0x06, 0x03 , // 0x51, 81, Q
0x1f, 0x09, 0x16, 0x03 , // 0x52, 82, R
0x12, 0x15, 0x09, 0x03 , // 0x53, 83, S
0x01, 0x1f, 0x01, 0x03 , // 0x54, 84, T
0x0f, 0x10, 0x0f, 0x03 , // 0x55, 85, U
0x1f, 0x10, 0x0f, 0x03 , // 0x56, 86, V
0x1f, 0x08, 0x1f, 0x03 , // 0x57, 87, W
0x1b, 0x04, 0x1b, 0x03 , // 0x58, 88, X
0x03, 0x1c, 0x03, 0x03 , // 0x59, 89, Y
0x19, 0x15, 0x13, 0x03 , // 0x5A, 90, Z
0x1f, 0x11, 0x00, 0x02 , // 0x5B, 91, [
0x03, 0x04, 0x18, 0x03 , // 0x5C, 92,
0x11, 0x1f, 0x00, 0x02 , // 0x5D, 93, [
0x11, 0x1f, 0x00, 0x02 , // 0x5E, 94, ^
0x1f, 0x1f, 0x1f, 0x03 // 0x5F, 95, _, used as block, all on
};