Correct color, default effect

This commit is contained in:
starcalc 2017-12-15 00:08:47 +01:00
parent 69cd6ed956
commit edb1e0088a
1 changed files with 7 additions and 4 deletions

View File

@ -4,12 +4,12 @@
#include <SoftwareSerial.h>
#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();
}