From 333c72db68bff349e6a00651a5ba276896f4c88b Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 4 Jan 2017 22:06:29 +0100 Subject: [PATCH] changed setup procedure slightly --- pixelprojektor/pixelprojektor.ino | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pixelprojektor/pixelprojektor.ino b/pixelprojektor/pixelprojektor.ino index 7434ebc..bf30ac6 100644 --- a/pixelprojektor/pixelprojektor.ino +++ b/pixelprojektor/pixelprojektor.ino @@ -400,19 +400,26 @@ bool pixelsHandler(const HomieRange& range, const String& value) { void setup() { Serial.begin(115200); Serial << endl << endl; - + + strip.begin(); + strip.show(); // Initialize all pixels to 'off' + + led_fill(strip.Color(100, 0, 0)); + Homie_setFirmware("pixelprojektor", "1.0.0"); homieNode.advertise("effect").settable(effectHandler); homieNode.advertise("pixels").settable(pixelsHandler); - strip.begin(); - strip.show(); // Initialize all pixels to 'off' + strip.setPixelColor(0, strip.Color(100,0,0)); + strip.show(); + + + delay(21240); //wait, boot bug testfix + Homie.setup(); led_fill(strip.Color(0, 0, 0)); - - Homie.setup(); }