Larson-Scanner muss zweite Farbe explizit gesetzt bekommen. Den Effekt zurücksenden, der erkannt wurde.
This commit is contained in:
parent
2ded30156c
commit
135486035f
|
@ -183,6 +183,7 @@ void NeoPatterns::Scanner(uint32_t color1, uint8_t interval, bool colorful, bool
|
||||||
Interval = interval;
|
Interval = interval;
|
||||||
TotalSteps = (numPixels() - 1) * 2;
|
TotalSteps = (numPixels() - 1) * 2;
|
||||||
Color1 = color1;
|
Color1 = color1;
|
||||||
|
Color2 = color1;
|
||||||
Index = 0;
|
Index = 0;
|
||||||
wPos = 0;
|
wPos = 0;
|
||||||
this->colorful = colorful;
|
this->colorful = colorful;
|
||||||
|
|
|
@ -116,10 +116,11 @@ bool onSetEffect(const HomieRange& range, const String& value) {
|
||||||
strip.RandomFadeSingle(p1);
|
strip.RandomFadeSingle(p1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
effect = "none";
|
||||||
strip.None();
|
strip.None();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
homieNode.setProperty("effect").send(value);
|
homieNode.setProperty("effect").send(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool onSetIcon(const HomieRange& range, const String& value) {
|
bool onSetIcon(const HomieRange& range, const String& value) {
|
||||||
|
|
Loading…
Reference in New Issue