fix green pixel showing wrongly on startup

This commit is contained in:
lukas 2021-03-07 19:41:56 +01:00
parent 9114587b8f
commit 78b38fc759
2 changed files with 13 additions and 2 deletions

View File

@ -10,9 +10,8 @@ Clock::Clock() : strip(NUMPIXELS, D5, NEO_GRB + NEO_KHZ800), animator(), refresh
void Clock::init() {
strip.begin();
strip.clear();
strip.show();
// initialize clock ticker
turnOn();
}

View File

@ -25,8 +25,20 @@ class Clock {
public:
Clock();
/**
* initialize the strip and wordclock functions
*/
void init();
/**
* turn of the wordclock
*/
void turnOff();
/**
* turn on the wordclock
*/
void turnOn();
Ticker refreshTicker;