Change some stuff
This commit is contained in:
parent
bc45337d9d
commit
0618ed16a7
|
@ -62,6 +62,7 @@ bool onSetBrightness(const HomieRange& range, const String& value){
|
|||
|
||||
bool onSetEffect(const HomieRange& range, const String& value){
|
||||
effect = value;
|
||||
effect.toLowerCase();
|
||||
i=0,j=0,wait=50;
|
||||
stripNode.setProperty("effect").send(value);
|
||||
}
|
||||
|
@ -141,7 +142,7 @@ void loopHandler() {
|
|||
j=0;
|
||||
}
|
||||
}
|
||||
else if (effect == "rainbowCycle") {
|
||||
else if (effect == "rainbowcycle") {
|
||||
if(j<256*5) {
|
||||
if(i<pixels.numPixels()) {
|
||||
pixels.setPixelColor(i, wheel(((i * 256 / pixels.numPixels()) + j) & 255));
|
||||
|
|
Loading…
Reference in New Issue