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() {
|
void Clock::init() {
|
||||||
strip.begin();
|
strip.begin();
|
||||||
strip.clear();
|
|
||||||
strip.show();
|
|
||||||
|
|
||||||
|
// initialize clock ticker
|
||||||
turnOn();
|
turnOn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
src/Clock.h
12
src/Clock.h
@ -25,8 +25,20 @@ class Clock {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Clock();
|
Clock();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* initialize the strip and wordclock functions
|
||||||
|
*/
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* turn of the wordclock
|
||||||
|
*/
|
||||||
void turnOff();
|
void turnOff();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* turn on the wordclock
|
||||||
|
*/
|
||||||
void turnOn();
|
void turnOn();
|
||||||
|
|
||||||
Ticker refreshTicker;
|
Ticker refreshTicker;
|
||||||
|
Loading…
Reference in New Issue
Block a user