Skip to content

Commit f08ad16

Browse files
add LED strip initialization
1 parent 1d3c0a1 commit f08ad16

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

wordclock_esp8266.ino

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,28 @@ void setup() {
493493
matrix.show();
494494
delay(200);
495495

496+
for(int i = 0; i < RING_LED_COUNT; i++){
497+
frameLEDStrip.setPixelColor(i, colors24bit[4]);
498+
frameLEDStrip.show();
499+
delay(10);
500+
}
501+
502+
// clear frame leds
503+
frameLEDStrip.fill(0);
504+
frameLEDStrip.show();
505+
delay(200);
506+
507+
for(int i = 0; i < CAL_LED_COUNT; i++){
508+
dateLEDStrip.setPixelColor(i, colors24bit[5]);
509+
dateLEDStrip.show();
510+
delay(10);
511+
}
512+
513+
// clear date leds
514+
dateLEDStrip.fill(0);
515+
dateLEDStrip.show();
516+
delay(200);
517+
496518
// display IP
497519
uint8_t address = WiFi.localIP()[3];
498520
ledmatrix.printChar(1, 0, 'I', maincolor_clock);

0 commit comments

Comments
 (0)