fix green pixel showing wrongly on startup
This commit is contained in:
parent
9114587b8f
commit
78b38fc759
@ -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();
|
||||
}
|
||||
|
||||
|
12
src/Clock.h
12
src/Clock.h
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user