Correct color, default effect
This commit is contained in:
parent
69cd6ed956
commit
edb1e0088a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue