|
@@ -78,14 +78,14 @@ uint8_t refreshAnimationCount = 1;
|
78
|
78
|
uint8_t lastButtonState = 0;
|
79
|
79
|
char buffer[11];
|
80
|
80
|
|
81
|
|
-uint8_t defaultImage[64] = { 0xe7, 0xc3, 0xa5, 0x18, 0x18, 0xa5, 0xc3, 0xe7,
|
82
|
|
- 0x81, 0x81, 0x00, 0x18, 0x18, 0x00, 0x81, 0x81,
|
83
|
|
- 0x81, 0x00, 0x81, 0x18, 0x18, 0x81, 0x00, 0x81,
|
84
|
|
- 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00,
|
85
|
|
- 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00,
|
86
|
|
- 0x81, 0x00, 0x81, 0x18, 0x18, 0x81, 0x00, 0x81,
|
87
|
|
- 0x81, 0x81, 0x00, 0x18, 0x18, 0x00, 0x81, 0x81,
|
88
|
|
- 0xe7, 0xc3, 0xa5, 0x18, 0x18, 0xa5, 0xc3, 0xe7 };
|
|
81
|
+uint8_t defaultImage[64] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
82
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
83
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
84
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
85
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
86
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
87
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
88
|
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
|
89
|
89
|
|
90
|
90
|
int main(void) {
|
91
|
91
|
uint8_t *audioData = NULL;
|
|
@@ -238,13 +238,15 @@ void serialHandler(char c) {
|
238
|
238
|
serialWrite(OK);
|
239
|
239
|
break;
|
240
|
240
|
|
241
|
|
- case 'h': case 'H':
|
|
241
|
+ case 'h': case 'H': case '?':
|
242
|
242
|
serialWriteString("(d)elete, (g)et anims, (s)et anims, (v)ersion\n");
|
243
|
243
|
#ifdef DEBUG
|
244
|
244
|
serialWriteString("(t)ime, (a)udio, (c)ount, (x)Custom count\n");
|
245
|
245
|
serialWriteString("(y)Set fixed animation count\n");
|
246
|
246
|
serialWriteString("S(e)lf Test\n");
|
247
|
247
|
serialWriteString("Play S(n)ake\n");
|
|
248
|
+ serialWriteString("(0): All LEDs Off\n");
|
|
249
|
+ serialWriteString("(1): All LEDs On\n");
|
248
|
250
|
#endif
|
249
|
251
|
break;
|
250
|
252
|
|
|
@@ -323,6 +325,20 @@ void serialHandler(char c) {
|
323
|
325
|
case 'n': case 'N':
|
324
|
326
|
snake();
|
325
|
327
|
break;
|
|
328
|
+
|
|
329
|
+ case '0':
|
|
330
|
+ fillBuffer(0x00);
|
|
331
|
+ setAnimationCount(0);
|
|
332
|
+ refreshAnimationCount = 1;
|
|
333
|
+ serialWriteString("Killed Animation Counter!\n");
|
|
334
|
+ break;
|
|
335
|
+
|
|
336
|
+ case '1':
|
|
337
|
+ fillBuffer(0xFF);
|
|
338
|
+ setAnimationCount(0);
|
|
339
|
+ refreshAnimationCount = 1;
|
|
340
|
+ serialWriteString("Killed Animation Counter!\n");
|
|
341
|
+ break;
|
326
|
342
|
#endif
|
327
|
343
|
|
328
|
344
|
default:
|