From 78b38fc7591977157807b864311e2d39d41d4f3f Mon Sep 17 00:00:00 2001 From: lukas Date: Sun, 7 Mar 2021 19:41:56 +0100 Subject: [PATCH] fix green pixel showing wrongly on startup --- src/Clock.cpp | 3 +-- src/Clock.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Clock.cpp b/src/Clock.cpp index 5c4a53f..af617c5 100644 --- a/src/Clock.cpp +++ b/src/Clock.cpp @@ -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(); } diff --git a/src/Clock.h b/src/Clock.h index b42a45a..ffd2132 100644 --- a/src/Clock.h +++ b/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;