From edb1e0088a013010b2432de13664b1c023963332 Mon Sep 17 00:00:00 2001 From: starcalc Date: Fri, 15 Dec 2017 00:08:47 +0100 Subject: [PATCH] Correct color, default effect --- esp-videoswitcher.ino | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/esp-videoswitcher.ino b/esp-videoswitcher.ino index 3ab0c82..4070f30 100644 --- a/esp-videoswitcher.ino +++ b/esp-videoswitcher.ino @@ -4,12 +4,12 @@ #include #include "NeoPatterns.h" -#define PIN D6 +#define PIN D7 #define BIGPIXELS 20 -#define NUMPIXELS * 3 // 3 LEDs form one pixel +#define NUMPIXELS (BIGPIXELS * 3) // 3 LEDs form one pixel +// #define NUMPIXELS 60 -NeoPatterns strip = NeoPatterns(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ400, &StripComplete); -// NeoPatterns strip = NeoPatterns(NUMPIXELS, PIN, NEO_RGB + NEO_KHZ400, &StripComplete); +NeoPatterns strip = NeoPatterns(NUMPIXELS, PIN, NEO_BRG + NEO_KHZ400, &StripComplete); HomieNode homieNode("pixel", "commands"); // Timeout, wann die Verbindung als "zurückgesetzt" angesehen werden soll und wieder auf das erste Byte gewartet wird @@ -246,6 +246,9 @@ void setup() { strip.clear(); strip.show(); + // Default effect + strip.RainbowCycle(50); + ArduinoOTA.setHostname(Homie.getConfiguration().deviceId); ArduinoOTA.begin(); }