Made MD* libraries (Parola, MAX72XX) project specific, to be able to use the newest software version from github.
This commit is contained in:
@@ -0,0 +1,529 @@
|
||||
// Data file for user example user defined fonts
|
||||
// руские большие и маленькие
|
||||
#ifndef FONTDATA_H
|
||||
#define FONTDATA_H
|
||||
|
||||
const uint8_t BigFontLower[] PROGMEM =
|
||||
{
|
||||
0, // 0
|
||||
0, // 1
|
||||
0, // 2
|
||||
0, // 3
|
||||
0, // 4
|
||||
0, // 5
|
||||
0, // 6
|
||||
0, // 7
|
||||
0, // 8
|
||||
0, // 9
|
||||
0, // 10
|
||||
0, // 11
|
||||
0, // 12
|
||||
0, // 13
|
||||
0, // 14
|
||||
0, // 15
|
||||
0, // 16
|
||||
0, // 17
|
||||
0, // 18
|
||||
0, // 19
|
||||
0, // 20
|
||||
0, // 21
|
||||
0, // 22
|
||||
0, // 23
|
||||
0, // 24
|
||||
0, // 25
|
||||
0, // 26
|
||||
0, // 27
|
||||
0, // 28
|
||||
0, // 29
|
||||
0, // 30
|
||||
0, // 31
|
||||
4,0,0,0,0, // 32 - 'Space'
|
||||
2,103,103, // 33 - '!'
|
||||
6,0,0,0,0,0,0, // 34 - '"'
|
||||
10,6,6,127,127,6,6,127,127,6,6, // 35 - '#'
|
||||
10,48,112,97,97,255,255,97,115,63,30, // 36 - '$'
|
||||
10,0,96,120,30,7,1,48,120,120,48, // 37 - '%'
|
||||
10,30,63,115,97,97,103,63,28,126,102, // 38 - '&'
|
||||
2,0,0, // 39 - '''
|
||||
5,7,31,60,112,96, // 40 - '('
|
||||
5,96,112,60,31,7, // 41 - ')'
|
||||
10,3,3,1,0,15,15,0,1,3,3, // 42 - '*'
|
||||
10,1,1,1,1,31,31,1,1,1,1, // 43 - '+'
|
||||
2,96,224, // 44 - ','
|
||||
10,1,1,1,1,1,1,1,1,1,1, // 45 - '-'
|
||||
2,96,96, // 46 - '.'
|
||||
8,96,120,30,7,1,0,0,0, // 47 - '/'
|
||||
10,31,63,112,96,96,96,96,112,63,31, // 48 - '0'
|
||||
6,96,96,127,127,96,96, // 49 - '1' //
|
||||
10,96,112,120,124,110,103,99,97,96,96, // 50 - '2'
|
||||
10,24,56,112,96,96,97,97,113,63,30, // 51 - '3'
|
||||
10,7,7,6,6,6,6,127,127,6,6, // 52 - '4'
|
||||
10,24,56,112,96,96,96,96,112,63,31, // 53 - '5'
|
||||
10,31,63,112,96,96,96,96,113,63,31, // 54 - '6'
|
||||
10,0,0,0,127,127,1,0,0,0,0, // 55 - '7'
|
||||
10,30,63,115,97,97,97,97,115,63,30, // 56 - '8'
|
||||
10,0,0,97,97,113,57,29,15,7,3, // 57 - '9'
|
||||
2,12,12, // 58 - ':'
|
||||
2, 97,225, // 59 - ';'
|
||||
8,1,3,7,14,28,56,112,96, // 60 - '<'
|
||||
10,12,12,12,12,12,12,12,12,12,12, // 61 - '='
|
||||
8,96,112,56,28,14,7,3,1, // 62 - '>'
|
||||
10,0,0,0,0,111,111,1,0,0,0, // 63 - '?'
|
||||
10,31,63,112,103,111,111,111,108,111,39, // 64 - '@'
|
||||
10,127,127,6,6,6,6,6,6,127,127, // 65 - 'A'
|
||||
10,127,127,97,97,97,97,97,115,63,30, // 66 - 'B'
|
||||
10,31,63,96,96,96,96,96,112,56,24, // 67 - 'C'
|
||||
10,127,127,96,96,96,96,96,112,63,31, // 68 - 'D'
|
||||
10,127,127,97,97,97,97,97,97,96,96, // 69 - 'E'
|
||||
10,127,127,1,1,1,1,1,1,0,0, // 70 - 'F'
|
||||
10,31,63,112,96,96,96,97,113,63,31, // 71 - 'G'
|
||||
10,127,127,1,1,1,1,1,1,127,127, // 72 - 'H'
|
||||
6,96,96,127,127,96,96, // 73 - 'I'
|
||||
8,24,56,112,96,96,112,63,31, // 74 - 'J'
|
||||
10,127,127,3,3,7,14,28,56,112,96, // 75 - 'K'
|
||||
10,127,127,96,96,96,96,96,96,96,96, // 76 - 'L'
|
||||
10,127,127,0,0,0,0,0,0,127,127, // 77 - 'M'
|
||||
10,127,127,0,0,1,7,28,48,127,127, // 78 - 'N'
|
||||
10,31,63,112,96,96,96,96,112,63,31, // 79 - 'O'
|
||||
10,127,127,1,1,1,1,1,1,0,0, // 80 - 'P'
|
||||
10,31,63,112,96,96,108,124,56,127,111, // 81 - 'Q'
|
||||
10,127,127,1,3,7,15,29,57,112,96, // 82 - 'R'
|
||||
10,48,112,97,97,97,97,97,115,63,30, // 83 - 'S'
|
||||
10,0,0,0,0,127,127,0,0,0,0, // 84 - 'T'
|
||||
10,31,63,112,96,96,96,96,112,63,31, // 85 - 'U'
|
||||
10,7,15,28,56,112,112,56,28,15,7, // 86 - 'V'
|
||||
10,31,63,112,120,62,62,120,112,63,31, // 87 - 'W'
|
||||
10,120,124,14,7,3,3,7,14,124,120, // 88 - 'X'
|
||||
10,0,0,0,0,127,127,0,0,0,0, // 89 - 'Y'
|
||||
10,120,124,110,103,99,97,96,96,96,96, // 90 - 'Z'
|
||||
4,127,127,96,96, // 91 - '['
|
||||
8,0,0,0,1,7,30,120,96, // 92 - '\'
|
||||
4,96,96,127,127, // 93 - ']'
|
||||
10,0,0,0,0,0,0,0,0,0,0, // 94 - '^'
|
||||
10,192,192,192,192,192,192,192,192,192,192, // 95 - '_'
|
||||
3,0,0,0, // 96 - '`'
|
||||
10,24,60,102,102,102,102,102,102,127,63, // 97 - 'a'
|
||||
10,127,127,96,96,96,96,96,112,63,31, // 98 - 'b'
|
||||
10,31,63,112,96,96,96,96,112,57,25, // 99 - 'c'
|
||||
10,31,63,112,96,96,96,96,96,127,127, // 100 - 'd'
|
||||
10,31,63,118,102,102,102,102,118,55,19, // 101 - 'e'
|
||||
7,1,127,127,1,1,0,0, // 102 - 'f'
|
||||
10,35,103,238,204,204,204,204,236,127,63, // 103 - 'g'
|
||||
10,127,127,0,0,0,0,0,0,127,127, // 104 - 'h'
|
||||
2,127,127, // 105 - 'i'
|
||||
8,24,56,112,96,96,112,63,31, // 106 - 'j'
|
||||
8,127,127,14,15,31,57,112,96, // 107 - 'k'
|
||||
6,96,96,127,127,96,96, // 108 - 'l'
|
||||
10,127,127,0,0,127,127,0,0,127,127, // 109 - 'm'
|
||||
10,127,127,1,1,0,0,0,0,127,127, // 110 - 'n'
|
||||
10,31,63,112,96,96,96,96,112,63,31, // 111 - 'o'
|
||||
10,255,255,24,24,24,24,24,28,15,7, // 112 - 'p'
|
||||
10,7,15,28,24,24,24,24,24,255,255, // 113 - 'q'
|
||||
10,127,127,3,1,0,0,0,0,1,1, // 114 - 'r'
|
||||
10,49,115,102,102,102,102,102,126,60,24, // 115 - 's'
|
||||
8,0,0,31,63,112,112,56,24, // 116 - 't'
|
||||
10,31,63,112,96,96,96,96,112,63,31, // 117 - 'u'
|
||||
10,7,15,28,56,112,112,56,28,15,7, // 118 - 'v'
|
||||
10,31,63,112,112,62,62,112,112,63,31, // 119 - 'w'
|
||||
10,96,112,57,31,15,15,31,57,112,96, // 120 - 'x'
|
||||
10,3,7,206,204,204,204,204,236,127,63, // 121 - 'y'
|
||||
10,96,112,120,124,110,103,99,97,96,96, // 122 - 'z'
|
||||
6,1,3,31,62,112,96, // 123 - '{'
|
||||
2,255,255, // 124 - '|'
|
||||
6,96,112,62,31,3,1, // 125 - '}'
|
||||
0, // 126
|
||||
0, // 127
|
||||
8, 255, 255, 12, 12, 12, 14, 7, 3, // 128 - 'р' //Low
|
||||
8, 63, 127, 224, 192, 192, 224, 112, 48, // 129 - 'с' //Low
|
||||
8, 0, 0, 0, 255, 255, 0, 0, 0, // 130 - 'т' //Low
|
||||
8, 35, 103, 198, 198, 198, 198, 127, 63, // 131 - 'у' //Low
|
||||
10, 15, 31, 56, 48, 255, 255, 48, 56, 31, 15, // 132 - 'ф' //Low
|
||||
8, 240, 248, 13, 7, 7, 13, 248, 240, // 133 - 'х' //Low
|
||||
8, 127, 127, 96, 96, 96, 255, 255, 192, // 134 - 'ц' //Low
|
||||
8, 3, 7, 14, 12, 12, 12, 255, 255, // 135 - 'ч' //Low
|
||||
10, 255, 255, 192, 192, 255, 255, 192, 192, 255, 255, // 136 - 'ш' //Low
|
||||
10, 127, 127, 96, 96, 127, 127, 96, 224, 255, 255, // 137 - 'щ' //Low
|
||||
8, 0, 255, 255, 195, 195, 231, 126, 60, // 138 - 'ъ' //Low
|
||||
10, 255, 255, 195, 195, 231, 126, 60, 0, 255, 255, // 139 - 'ы' //Low
|
||||
8, 255, 255, 195, 195, 195, 231, 126, 60, // 140 - 'ь' //Low
|
||||
8, 48, 112, 224, 192, 198, 230, 127, 63, // 141 - 'э' //Low
|
||||
10, 255, 255, 6, 63, 127, 224, 192, 224, 127, 63, // 142 - 'ю' //Low
|
||||
8, 131, 199, 110, 60, 28, 12, 255, 255, // 143 - 'я' //Low
|
||||
8, 255, 255, 6, 6, 6, 6, 255, 255, // 144 - 'А' //Low
|
||||
8, 255, 255, 192, 192, 192, 225, 127, 63, // 145 - 'Б' //Low
|
||||
8, 255, 255, 192, 192, 192, 225, 127, 63, // 146 - 'В' //Low
|
||||
6, 255, 255, 0, 0, 0, 0, // 147 - 'Г' //Low
|
||||
10, 224, 255, 127, 96, 96, 96, 96, 127, 255, 224, // 148 - 'Д' //Low
|
||||
6, 255, 255, 193, 193, 193, 192, // 149 - 'Е' //Low
|
||||
10, 252, 254, 3, 1, 255, 255, 1, 3, 254, 252, // 150 - 'Ж' //Low
|
||||
8, 56, 120, 224, 192, 192, 225, 127, 63, // 151 - 'З' //Low
|
||||
8, 255, 255, 56, 28, 14, 7, 255, 255, // 152 - 'И' //Low
|
||||
8, 255, 255, 56, 28, 14, 7, 255, 255, // 153 - 'Й' //Low
|
||||
8, 255, 255, 1, 3, 6, 12, 248, 240, // 154 - 'К' //Low
|
||||
8, 192, 255, 127, 0, 0, 0, 255, 255, // 155 - 'Л' //Low
|
||||
10, 255, 255, 0, 3, 63, 63, 3, 0, 255, 255, // 156 - 'М' //Low
|
||||
8, 255, 255, 1, 1, 1, 1, 255, 255, // 157 - 'Н' //Low
|
||||
8, 63, 127, 224, 192, 192, 224, 127, 63, // 158 - 'О' //Low
|
||||
8, 255, 255, 0, 0, 0, 0, 255, 255, // 159 - 'П' //Low
|
||||
8, 255, 255, 6, 6, 6, 7, 3, 1, // 160 - 'Р' //Low
|
||||
8, 63, 127, 224, 192, 192, 224, 120, 56, // 161 - 'С' //Low
|
||||
8, 0, 0, 0, 255, 255, 0, 0, 0, // 162 - 'Т' //Low
|
||||
8, 48, 112, 224, 193, 195, 230, 127, 63, // 163 - 'У' //Low
|
||||
10, 15, 31, 56, 48, 255, 255, 48, 56, 31, 15, // 164 - 'Ф' //Low
|
||||
8, 248, 252, 14, 3, 3, 6, 252, 248, // 165 - 'Х' //Low
|
||||
8, 127, 127, 96, 96, 96, 127, 255, 224, // 166 - 'Ц' //Low
|
||||
8, 1, 3, 7, 6, 6, 6, 255, 255, // 167 - 'Ч' //Low
|
||||
10, 255, 255, 224, 224, 255, 255, 224, 224, 255, 255, // 168 - 'Ш' //Low
|
||||
10, 127, 127, 112, 112, 127, 127, 112, 240, 255, 255, // 169 - 'Щ' //Low
|
||||
8, 0, 255, 255, 192, 192, 225, 127, 63, // 170 - 'Ъ' //Low
|
||||
10, 255, 255, 192, 192, 225, 127, 63, 0, 255, 255, // 171 - 'Ы' //Low
|
||||
8, 255, 255, 192, 192, 192, 224, 127, 63, // 172 - 'Ь' //Low
|
||||
8, 48, 112, 224, 193, 193, 225, 127, 63, // 173 - 'Э' //Low
|
||||
10, 255, 255, 1, 63, 127, 224, 192, 224, 127, 63, // 174 - 'Ю' //Low
|
||||
8, 192, 225, 115, 59, 31, 15, 255, 255, // 175 - 'Я' //Low
|
||||
8, 56, 124, 238, 198, 198, 255, 255, 192, // 176 - 'а' //Low
|
||||
8, 255, 255, 195, 195, 195, 231, 126, 60, // 177 - 'б' //Low
|
||||
7, 255, 255, 198, 199, 237, 124, 56, // 178 - 'в' //Low
|
||||
6, 255, 255, 0, 0, 0, 0, // 179 - 'г' //Low
|
||||
8, 224, 255, 127, 96, 96, 127, 255, 224, // 180 - 'д' //Low
|
||||
8, 63, 127, 230, 198, 198, 230, 103, 35, // 181 - 'е' //Low
|
||||
10, 240, 248, 13, 6, 255, 255, 6, 13, 248, 240, // 182 - 'ж' //Low
|
||||
8, 48, 112, 224, 194, 198, 239, 125, 56, // 183 - 'з' //Low
|
||||
8, 255, 255, 96, 48, 24, 12, 255, 255, // 184 - 'и' //Low
|
||||
8, 255, 255, 96, 48, 24, 12, 255, 255, // 185 - 'й' //Low
|
||||
8, 255, 255, 6, 7, 13, 24, 240, 224, // 186 - 'к' //Low
|
||||
8, 192, 240, 28, 7, 1, 0, 255, 255, // 187 - 'л' //Low
|
||||
10, 255, 255, 3, 14, 120, 120, 14, 3, 255, 255, // 188 - 'м' //Low
|
||||
8, 255, 255, 6, 6, 6, 6, 255, 255, // 189 - 'н' //Low
|
||||
8, 63, 127, 224, 192, 192, 224, 127, 63, // 190 - 'о' //Low
|
||||
8, 255, 255, 0, 0, 0, 0, 255, 255, // 191 - 'п' //Low
|
||||
0, // 192
|
||||
0, // 193
|
||||
0, // 194
|
||||
0, // 195
|
||||
0, // 196
|
||||
0, // 197
|
||||
0, // 198
|
||||
0, // 199
|
||||
0, // 200
|
||||
0, // 201
|
||||
0, // 202
|
||||
0, // 203
|
||||
0, // 204
|
||||
0, // 205
|
||||
0, // 206
|
||||
0, // 207
|
||||
0, // 208
|
||||
0, // 209
|
||||
0, // 210
|
||||
0, // 211
|
||||
0, // 212
|
||||
0, // 213
|
||||
0, // 214
|
||||
0, // 215
|
||||
0, // 216
|
||||
0, // 217
|
||||
0, // 218
|
||||
0, // 219
|
||||
0, // 220
|
||||
0, // 221
|
||||
0, // 222
|
||||
0, // 223
|
||||
0, // 224
|
||||
0, // 225
|
||||
0, // 226
|
||||
0, // 227
|
||||
0, // 228
|
||||
0, // 229
|
||||
0, // 230
|
||||
0, // 231
|
||||
0, // 232
|
||||
0, // 233
|
||||
0, // 234
|
||||
0, // 235
|
||||
0, // 236
|
||||
0, // 237
|
||||
0, // 238
|
||||
0, // 239
|
||||
0, // 240
|
||||
0, // 241
|
||||
0, // 242
|
||||
0, // 243
|
||||
0, // 244
|
||||
0, // 245
|
||||
0, // 246
|
||||
0, // 247
|
||||
0, // 248
|
||||
0, // 249
|
||||
0, // 250
|
||||
0, // 251
|
||||
0, // 252
|
||||
0, // 253
|
||||
0, // 254
|
||||
0, // 255
|
||||
};
|
||||
|
||||
|
||||
const uint8_t BigFontUpper[] PROGMEM =
|
||||
{
|
||||
0, // 0
|
||||
0, // 1
|
||||
0, // 2
|
||||
0, // 3
|
||||
0, // 4
|
||||
0, // 5
|
||||
0, // 6
|
||||
0, // 7
|
||||
0, // 8
|
||||
0, // 9
|
||||
0, // 10
|
||||
0, // 11
|
||||
0, // 12
|
||||
0, // 13
|
||||
0, // 14
|
||||
0, // 15
|
||||
0, // 16
|
||||
0, // 17
|
||||
0, // 18
|
||||
0, // 19
|
||||
0, // 20
|
||||
0, // 21
|
||||
0, // 22
|
||||
0, // 23
|
||||
0, // 24
|
||||
0, // 25
|
||||
0, // 26
|
||||
0, // 27
|
||||
0, // 28
|
||||
0, // 29
|
||||
0, // 30
|
||||
0, // 31
|
||||
4,0,0,0,0, // 32 - 'Space'
|
||||
2,254,254, // 33 - '!'
|
||||
6,14,14,0,0,14,14, // 34 - '"'
|
||||
10,96,96,254,254,96,96,254,254,96,96, // 35 - '#'
|
||||
10,120,252,206,134,255,255,134,134,14,12, // 36 - '$'
|
||||
10,12,30,30,12,128,224,120,30,6,0, // 37 - '%'
|
||||
10,0,0,152,252,230,230,60,24,0,0, // 38 - '&'
|
||||
2,14,14, // 39 - '''
|
||||
5,224,248,60,14,6, // 40 - '('
|
||||
5,6,14,60,248,224, // 41 - ')'
|
||||
10,24,184,240,224,254,254,224,240,184,24, // 42 - '*'
|
||||
10,128,128,128,128,248,248,128,128,128,128, // 43 - '+'
|
||||
2,0,0, // 44 - ','
|
||||
10,128,128,128,128,128,128,128,128,128,128, // 45 - '-'
|
||||
2,0,0, // 46 - '.'
|
||||
8,0,0,0,128,224,120,30,6, // 47 - '/'
|
||||
10,248,252,14,6,6,6,6,14,252,248, // 48 - '0'
|
||||
6,24,28,254,254,0,0, // 49 - '1'
|
||||
10,24,28,14,6,6,6,134,206,252,120, // 50 - '2'
|
||||
10,24,28,14,6,6,134,134,142,252,120, // 51 - '3'
|
||||
10,128,192,224,112,56,28,254,254,0,0, // 52 - '4'
|
||||
10,126,126,102,102,102,102,102,230,198,134, // 53 - '5'
|
||||
10,248,252,198,198,198,198,198,198,140,8, // 54 - '6'
|
||||
10,6,6,6,6,134,198,230,118,62,30, // 55 - '7'
|
||||
10,56,124,206,134,134,134,134,206,124,56, // 56 - '8'
|
||||
10,120,252,206,134,134,134,134,206,252,248, // 57 - '9'
|
||||
2,48,48, // 58 - ':'
|
||||
2,128,128, // 59 - ';'
|
||||
8,128,192,224,112,56,28,14,6, // 60 - '<'
|
||||
10,48,48,48,48,48,48,48,48,48,48, // 61 - '='
|
||||
8,6,14,28,56,112,224,192,128, // 62 - '>'
|
||||
10,24,28,14,6,6,134,134,206,252,120, // 63 - '?'
|
||||
10,248,252,14,230,246,246,230,14,252,248, // 64 - '@'
|
||||
10,248,252,14,6,6,6,6,14,252,248, // 65 - 'A'
|
||||
10,254,254,134,134,134,134,134,206,252,120, // 66 - 'B'
|
||||
10,248,252,6,6,6,6,6,14,28,24, // 67 - 'C'
|
||||
10,254,254,6,6,6,6,6,14,252,248, // 68 - 'D'
|
||||
10,254,254,134,134,134,134,134,134,6,6, // 69 - 'E'
|
||||
10,254,254,134,134,134,134,134,134,6,6, // 70 - 'F'
|
||||
10,248,252,14,6,6,6,134,142,156,152, // 71 - 'G'
|
||||
10,254,254,128,128,128,128,128,128,254,254, // 72 - 'H'
|
||||
6,6,6,254,254,6,6, // 73 - 'I'
|
||||
8,6,6,6,6,6,6,254,254, // 74 - 'J'
|
||||
10,254,254,192,192,224,112,56,28,14,6, // 75 - 'K'
|
||||
10,254,254,0,0,0,0,0,0,0,0, // 76 - 'L'
|
||||
10,254,254,28,56,240,240,56,28,254,254, // 77 - 'M'
|
||||
10,254,254,28,112,192,0,0,0,254,254, // 78 - 'N'
|
||||
10,248,252,14,6,6,6,6,14,252,248, // 79 - 'O'
|
||||
10,254,254,134,134,134,134,134,206,252,120, // 80 - 'P'
|
||||
10,248,252,14,6,6,6,6,14,252,248, // 81 - 'Q'
|
||||
10,254,254,134,134,134,134,134,206,252,120, // 82 - 'R'
|
||||
10,120,252,206,134,134,134,134,134,14,12, // 83 - 'S'
|
||||
10,6,6,6,6,254,254,6,6,6,6, // 84 - 'T'
|
||||
10,254,254,0,0,0,0,0,0,254,254, // 85 - 'U'
|
||||
10,254,254,0,0,0,0,0,0,254,254, // 86 - 'V'
|
||||
10,254,254,0,0,0,0,0,0,254,254, // 87 - 'W'
|
||||
10,30,62,48,224,192,192,224,112,62,30, // 88 - 'X'
|
||||
10,30,62,112,224,192,192,224,112,62,30, // 89 - 'Y'
|
||||
10,6,6,6,6,134,198,230,118,62,30, // 90 - 'Z'
|
||||
4,254,254,6,6, // 91 - '['
|
||||
8,6,30,120,224,128,0,0,0, // 92 - '\'
|
||||
4,6,6,254,254, // 93 - ']'
|
||||
10,96,112,56,28,14,14,28,56,112,96, // 94 - '^'
|
||||
10,0,0,0,0,0,0,0,0,0,0, // 95 - '_'
|
||||
3,6,30,24, // 96 - '`'
|
||||
10,0,192,224,96,96,96,96,224,192,128, // 97 - 'a'
|
||||
10,254,254,96,96,96,96,96,224,192,128, // 98 - 'b'
|
||||
10,128,192,224,96,96,96,96,224,192,128, // 99 - 'c'
|
||||
10,128,192,224,96,96,96,96,96,254,254, // 100 - 'd'
|
||||
10,128,192,224,96,96,96,96,224,192,128, // 101 - 'e'
|
||||
7,128,248,252,142,142,28,24, // 102 - 'f'
|
||||
10,128,192,224,96,96,96,96,96,224,224, // 103 - 'g'
|
||||
10,254,254,96,96,96,96,96,224,192,128, // 104 - 'h'
|
||||
2,236,236, // 105 - 'i'
|
||||
8,0,0,0,0,0,0,230,230, // 106 - 'j'
|
||||
8,254,254,0,0,128,192,224,96, // 107 - 'k'
|
||||
6,6,6,254,254,0,0, // 108 - 'l'
|
||||
10,224,224,96,96,224,224,96,96,224,192, // 109 - 'm'
|
||||
10,224,224,128,192,224,96,96,224,192,128, // 110 - 'n'
|
||||
10,128,192,224,96,96,96,96,224,192,128, // 111 - 'o'
|
||||
10,224,224,96,96,96,96,96,224,192,128, // 112 - 'p'
|
||||
10,128,192,224,96,96,96,96,96,224,224, // 113 - 'q'
|
||||
10,224,224,128,192,224,96,96,224,192,128, // 114 - 'r'
|
||||
10,128,192,96,96,96,96,96,96,192,192, // 115 - 's'
|
||||
8,96,96,254,254,96,96,96,96, // 116 - 't'
|
||||
10,224,224,0,0,0,0,0,0,224,224, // 117 - 'u'
|
||||
10,224,224,0,0,0,0,0,0,224,224, // 118 - 'v'
|
||||
10,224,224,0,0,0,0,0,0,224,224, // 119 - 'w'
|
||||
10,96,224,192,128,0,0,128,192,224,96, // 120 - 'x'
|
||||
10,224,224,0,0,0,0,0,0,224,224, // 121 - 'y'
|
||||
10,96,96,96,96,96,96,224,224,224,96, // 122 - 'z'
|
||||
6,128,192,248,124,14,6, // 123 - '{'
|
||||
2,255,255, // 124 - '|'
|
||||
6,6,14,124,248,192,128, // 125 - '}'
|
||||
0, // 126
|
||||
0, // 127
|
||||
8, 240, 240, 48, 48, 48, 112, 224, 192, // 128 - 'р' //Up
|
||||
8, 192, 224, 112, 48, 48, 112, 224, 192, // 129 - 'с' //Up
|
||||
8, 112, 48, 48, 240, 240, 48, 48, 112, // 130 - 'т' //Up
|
||||
8, 240, 240, 0, 0, 0, 0, 240, 240, // 131 - 'у' //Up
|
||||
10, 128, 192, 224, 96, 240, 240, 96, 224, 192, 128, // 132 - 'ф' //Up
|
||||
8, 112, 240, 128, 0, 0, 128, 240, 112, // 133 - 'х' //Up
|
||||
8, 240, 240, 0, 0, 0, 240, 240, 0, // 134 - 'ц' //Up
|
||||
8, 240, 240, 0, 0, 0, 0, 240, 240, // 135 - 'ч' //Up
|
||||
10, 240, 240, 0, 0, 224, 224, 0, 0, 240, 240, // 136 - 'ш' //Up
|
||||
10, 240, 240, 0, 0, 128, 128, 0, 0, 240, 240, // 137 - 'щ' //Up
|
||||
8, 48, 240, 240, 0, 0, 0, 0, 0, // 138 - 'ъ' //Up
|
||||
10, 240, 240, 0, 0, 0, 0, 0, 0, 240, 240, // 139 - 'ы' //Up
|
||||
8, 240, 240, 0, 0, 0, 0, 0, 0, // 140 - 'ь' //Up
|
||||
8, 192, 224, 112, 48, 48, 112, 224, 192, // 141 - 'э' //Up
|
||||
10, 240, 240, 0, 192, 224, 112, 48, 112, 224, 192, // 142 - 'ю' //Up
|
||||
8, 192, 224, 112, 48, 48, 48, 240, 240, // 143 - 'я' //Up
|
||||
8, 248, 252, 14, 7, 7, 14, 252, 248, // 144 - 'А' //Up
|
||||
8, 255, 255, 195, 195, 195, 195, 131, 0, // 145 - 'Б' //Up
|
||||
8, 255, 255, 195, 195, 195, 231, 190, 28, // 146 - 'В' //Up
|
||||
6, 255, 255, 3, 3, 7, 7, // 147 - 'Г' //Up
|
||||
10, 0, 248, 252, 14, 7, 7, 7, 255, 255, 0, // 148 - 'Д' //Up
|
||||
6, 255, 255, 131, 131, 131, 3, // 149 - 'Е' //Up
|
||||
10, 31, 63, 96, 192, 255, 255, 192, 96, 63, 63, // 150 - 'Ж' //Up
|
||||
8, 12, 14, 7, 195, 195, 231, 190, 28, // 151 - 'З' //Up
|
||||
8, 255, 255, 0, 0, 0, 0, 255, 255, // 152 - 'И' //Up
|
||||
8, 254, 254, 0, 3, 3, 0, 254, 254, // 153 - 'Й' //Up
|
||||
8, 255, 255, 128, 192, 96, 48, 31, 15, // 154 - 'К' //Up
|
||||
8, 0, 248, 252, 14, 7, 7, 255, 255, // 155 - 'Л' //Up
|
||||
10, 255, 255, 240, 192, 0, 0, 192, 240, 255, 255, // 156 - 'М' //Up
|
||||
8, 255, 255, 128, 128, 128, 128, 255, 255, // 157 - 'Н' //Up
|
||||
8, 252, 254, 7, 3, 3, 7, 254, 252, // 158 - 'О' //Up
|
||||
8, 255, 255, 7, 7, 7, 7, 255, 255, // 159 - 'П' //Up
|
||||
8, 255, 255, 3, 3, 3, 7, 254, 252, // 160 - 'Р' //Up
|
||||
8, 252, 254, 7, 3, 3, 7, 30, 28, // 161 - 'С' //Up
|
||||
8, 7, 7, 3, 255, 255, 3, 7, 7, // 162 - 'Т' //Up
|
||||
8, 63, 127, 192, 128, 0, 0, 255, 255, // 163 - 'У' //Up
|
||||
10, 240, 248, 28, 12, 255, 255, 12, 28, 248, 240, // 164 - 'Ф' //Up
|
||||
8, 31, 63, 112, 192, 192, 112, 63, 31, // 165 - 'Х' //Up
|
||||
8, 255, 255, 0, 0, 0, 255, 255, 0, // 166 - 'Ц' //Up
|
||||
8, 255, 255, 0, 0, 0, 0, 255, 255, // 167 - 'Ч' //Up
|
||||
10, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, // 168 - 'Ш' //Up
|
||||
10, 255, 255, 0, 0, 255, 255, 0, 0, 255, 255, // 169 - 'Щ' //Up
|
||||
8, 7, 255, 255, 192, 192, 192, 128, 0, // 170 - 'Ъ' //Up
|
||||
10, 255, 255, 192, 192, 192, 128, 0, 0, 255, 255, // 171 - 'Ы' //Up
|
||||
8, 255, 255, 96, 96, 96, 224, 192, 128, // 172 - 'Ь' //Up
|
||||
8, 12, 14, 7, 131, 131, 135, 254, 252, // 173 - 'Э' //Up
|
||||
10, 255, 255, 128, 252, 254, 7, 3, 7, 254, 252, // 174 - 'Ю' //Up
|
||||
8, 252, 254, 135, 3, 3, 3, 255, 255, // 175 - 'Я' //Up
|
||||
8, 192, 224, 112, 48, 112, 240, 224, 0, // 176 - 'а' //Up
|
||||
8, 240, 240, 48, 48, 48, 48, 48, 0, // 177 - 'б' //Up
|
||||
7, 240, 240, 48, 112, 224, 192, 0, // 178 - 'в' //Up
|
||||
6, 240, 240, 48, 48, 112, 112, // 179 - 'г' //Up
|
||||
8, 0, 128, 192, 224, 112, 240, 240, 0, // 180 - 'д' //Up
|
||||
8, 192, 224, 112, 48, 48, 112, 224, 192, // 181 - 'е' //Up
|
||||
10, 112, 240, 0, 0, 240, 240, 0, 0, 240, 112, // 182 - 'ж' //Up
|
||||
8, 192, 224, 112, 48, 48, 112, 224, 192, // 183 - 'з' //Up
|
||||
8, 240, 240, 0, 0, 0, 0, 240, 240, // 184 - 'и' //Up
|
||||
8, 224, 224, 0, 48, 48, 0, 224, 224, // 185 - 'й' //Up
|
||||
8, 240, 240, 0, 0, 128, 192, 112, 48, // 186 - 'к' //Up
|
||||
8, 0, 0, 0, 0, 192, 112, 240, 240, // 187 - 'л' //Up
|
||||
10, 240, 240, 128, 0, 0, 0, 0, 128, 240, 240, // 188 - 'м' //Up
|
||||
8, 240, 240, 0, 0, 0, 0, 240, 240, // 189 - 'н' //Up
|
||||
8, 192, 224, 112, 48, 48, 112, 224, 192, // 190 - 'о' //Up
|
||||
8, 240, 240, 48, 48, 48, 48, 240, 240, // 191 - 'п' //Up
|
||||
0, // 192
|
||||
0, // 193
|
||||
0, // 194
|
||||
0, // 195
|
||||
0, // 196
|
||||
0, // 197
|
||||
0, // 198
|
||||
0, // 199
|
||||
0, // 200
|
||||
0, // 201
|
||||
0, // 202
|
||||
0, // 203
|
||||
0, // 204
|
||||
0, // 205
|
||||
0, // 206
|
||||
0, // 207
|
||||
0, // 208
|
||||
0, // 209
|
||||
0, // 210
|
||||
0, // 211
|
||||
0, // 212
|
||||
0, // 213
|
||||
0, // 214
|
||||
0, // 215
|
||||
0, // 216
|
||||
0, // 217
|
||||
0, // 218
|
||||
0, // 219
|
||||
0, // 220
|
||||
0, // 221
|
||||
0, // 222
|
||||
0, // 223
|
||||
0, // 224
|
||||
0, // 225
|
||||
0, // 226
|
||||
0, // 227
|
||||
0, // 228
|
||||
0, // 229
|
||||
0, // 230
|
||||
0, // 231
|
||||
0, // 232
|
||||
0, // 233
|
||||
0, // 234
|
||||
0, // 235
|
||||
0, // 236
|
||||
0, // 237
|
||||
0, // 238
|
||||
0, // 239
|
||||
0, // 240
|
||||
0, // 241
|
||||
0, // 242
|
||||
0, // 243
|
||||
0, // 244
|
||||
0, // 245
|
||||
0, // 246
|
||||
0, // 247
|
||||
0, // 248
|
||||
0, // 249
|
||||
0, // 250
|
||||
0, // 251
|
||||
0, // 252
|
||||
0, // 253
|
||||
0, // 254
|
||||
0, // 255
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
@@ -0,0 +1,163 @@
|
||||
// Demonstrates one way to create a double height display using Parola.
|
||||
//
|
||||
// Largely based on code shared by arduino.cc forum user Arek00, 26 Sep 2015.
|
||||
// Video of running display can be seen at https://www.youtube.com/watch?v=7nPCIMVUo5g
|
||||
// Modified with Russian font by arduino.cc forum user borzov161, 25 May 2017.
|
||||
//
|
||||
// The upper and lower portions are managed as 2 zones 'stacked' on top of each other
|
||||
// so that the module numbers are in the sequence shown below:
|
||||
//
|
||||
// * Modules (like FC-16) that can fit over each other with no gap
|
||||
// n n-1 n-2 ... n/2+1 <- this direction top row
|
||||
// n/2 ... 3 2 1 0 <- this direction bottom row
|
||||
//
|
||||
// * Modules (like Generic and Parola) that cannot fit over each other with no gap
|
||||
// n/2+1 ... n-2 n-1 n -> this direction top row
|
||||
// n/2 ... 3 2 1 0 <- this direction bottom row
|
||||
//
|
||||
// Each font displays letters for either top or bottom half of the message. Sending the
|
||||
// same string to both zones creates the complete message
|
||||
// on the display.
|
||||
//
|
||||
// MD_MAX72XX library can be found at https://github.com/MajicDesigns/MD_MAX72XX
|
||||
//
|
||||
|
||||
#include <MD_Parola.h>
|
||||
#include <MD_MAX72xx.h>
|
||||
#include <SPI.h>
|
||||
#include "Font_Data_RUS.h" //English + Russian
|
||||
|
||||
#define DEBUG 0
|
||||
|
||||
// Define the number of devices we have in the chain and the hardware interface
|
||||
// NOTE: These pin numbers will probably not work with your hardware and may
|
||||
// need to be adapted
|
||||
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
|
||||
#define MAX_ZONES 2
|
||||
#define ZONE_SIZE 4
|
||||
#define MAX_DEVICES (MAX_ZONES * ZONE_SIZE)
|
||||
#define SCROLL_SPEED 30
|
||||
|
||||
#define ZONE_UPPER 1
|
||||
#define ZONE_LOWER 0
|
||||
|
||||
#define CLK_PIN 13
|
||||
#define DATA_PIN 11
|
||||
#define CS_PIN 10
|
||||
|
||||
// HARDWARE SPI
|
||||
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
|
||||
// SOFTWARE SPI
|
||||
//MD_Parola P = MD_Parola(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
|
||||
|
||||
bool invertUpperZone = false;
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
|
||||
char *msg[] =
|
||||
{
|
||||
"Create double height displays using 2 custom fonts and 2 zones",
|
||||
"Zone 0 for lower half",
|
||||
"Zone 1 for upper half",
|
||||
"BIG",
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||
"abcdefghijklmnopqrstuvwxyz",
|
||||
"0123456789",
|
||||
"`!@#$%^&*()_+-={};:'\"<>?,./|\\{}",
|
||||
"АБВГДЕЖЗКЛМНОПРСТФУХЦЧШЩЪЫЬЭЮЯ",
|
||||
"абвгдежзлмнопрстуфхцчшщъыьэюя"
|
||||
};
|
||||
|
||||
void setup(void)
|
||||
{
|
||||
invertUpperZone = (HARDWARE_TYPE == MD_MAX72XX::GENERIC_HW || HARDWARE_TYPE == MD_MAX72XX::PAROLA_HW);
|
||||
|
||||
// initialise the LED display
|
||||
P.begin(MAX_ZONES);
|
||||
|
||||
// Set up zones for 2 halves of the display
|
||||
// Each zone gets a different font, making up the top
|
||||
// and bottom half of each letter
|
||||
P.setZone(ZONE_LOWER, 0, ZONE_SIZE - 1);
|
||||
P.setFont(ZONE_LOWER, BigFontLower);
|
||||
|
||||
P.setZone(ZONE_UPPER, ZONE_SIZE, MAX_DEVICES-1);
|
||||
P.setFont(ZONE_UPPER, BigFontUpper);
|
||||
P.setCharSpacing(P.getCharSpacing() * 2); // double height --> double spacing
|
||||
if (invertUpperZone)
|
||||
{
|
||||
P.setZoneEffect(ZONE_UPPER, true, PA_FLIP_UD);
|
||||
P.setZoneEffect(ZONE_UPPER, true, PA_FLIP_LR);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
Serial.begin(57600);
|
||||
Serial.println("[Double Height demo start]");
|
||||
#endif
|
||||
}
|
||||
|
||||
void loop(void)
|
||||
{
|
||||
static uint8_t cycle = 0;
|
||||
|
||||
// Run the animation and then check if BOTH zones have
|
||||
// completed. The animations are not the same length due
|
||||
// to upper/lower effects being displayed differently.
|
||||
P.displayAnimate();
|
||||
|
||||
if (P.getZoneStatus(ZONE_LOWER) && P.getZoneStatus(ZONE_UPPER))
|
||||
{
|
||||
#if DEBUG
|
||||
Serial.println(cycle);
|
||||
#endif
|
||||
|
||||
switch (cycle)
|
||||
{
|
||||
default:
|
||||
P.setFont(ZONE_LOWER, BigFontLower);
|
||||
P.setFont(ZONE_UPPER, BigFontUpper);
|
||||
if (invertUpperZone)
|
||||
{
|
||||
P.displayZoneText(ZONE_LOWER, msg[cycle], PA_LEFT, SCROLL_SPEED, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
|
||||
P.displayZoneText(ZONE_UPPER, msg[cycle], PA_LEFT, SCROLL_SPEED, 0, PA_SCROLL_RIGHT, PA_SCROLL_RIGHT);
|
||||
}
|
||||
else
|
||||
{
|
||||
P.displayZoneText(ZONE_LOWER, msg[cycle], PA_RIGHT, SCROLL_SPEED, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
|
||||
P.displayZoneText(ZONE_UPPER, msg[cycle], PA_LEFT, SCROLL_SPEED, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
P.setFont(ZONE_LOWER, NULL);
|
||||
P.setFont(ZONE_UPPER, BigFontUpper);
|
||||
P.displayZoneText(ZONE_LOWER, msg[1], PA_CENTER, SCROLL_SPEED, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
|
||||
P.displayZoneText(ZONE_UPPER, msg[3], PA_CENTER, SCROLL_SPEED, 0, PA_PRINT, PA_NO_EFFECT);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
P.setFont(ZONE_LOWER, BigFontLower);
|
||||
P.setFont(ZONE_UPPER, NULL);
|
||||
P.displayZoneText(ZONE_LOWER, msg[3], PA_CENTER, SCROLL_SPEED, 0, PA_PRINT, PA_NO_EFFECT);
|
||||
if (invertUpperZone)
|
||||
P.displayZoneText(ZONE_UPPER, msg[2], PA_CENTER, SCROLL_SPEED, 0, PA_SCROLL_RIGHT, PA_SCROLL_RIGHT);
|
||||
else
|
||||
P.displayZoneText(ZONE_UPPER, msg[2], PA_CENTER, SCROLL_SPEED, 0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
P.setFont(ZONE_LOWER, BigFontLower);
|
||||
P.setFont(ZONE_UPPER, BigFontUpper);
|
||||
P.displayZoneText(ZONE_LOWER, msg[3], PA_CENTER, SCROLL_SPEED, 2000, PA_PRINT, PA_NO_EFFECT); // PA_SCROLL_LEFT, PA_SCROLL_LEFT);
|
||||
P.displayZoneText(ZONE_UPPER, msg[3], PA_CENTER, SCROLL_SPEED, 2000, PA_PRINT, PA_NO_EFFECT); //PA_SCROLL_RIGHT, PA_SCROLL_RIGHT);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
// prepare for next pass
|
||||
cycle = (cycle + 1) % ARRAY_SIZE(msg);
|
||||
|
||||
// synchronise the start
|
||||
P.displayClear();
|
||||
P.synchZoneStart();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user