Change some stuff

This commit is contained in:
Juergen Jung 2017-01-29 00:43:06 +01:00
parent bc45337d9d
commit 0618ed16a7
1 changed files with 2 additions and 1 deletions

View File

@ -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));