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(); }