Alten Kommentar entfernt
This commit is contained in:
parent
79e6189857
commit
188c408506
|
@ -229,34 +229,3 @@ void loop() {
|
|||
Homie.loop();
|
||||
ArduinoOTA.handle();
|
||||
}
|
||||
|
||||
|
||||
/************ Old stuff ************/
|
||||
/*
|
||||
bool pixelsHandler(const HomieRange& range, const String& value) {
|
||||
|
||||
String remaining = value;
|
||||
int i = 0;
|
||||
effect = EFFECT_NONE;
|
||||
do {
|
||||
String current = remaining.substring(0, 7);
|
||||
Homie.getLogger() << i << ":" << current << endl;
|
||||
uint32_t currentcolor = parseColor(current);
|
||||
|
||||
strip.setPixelColor(i, currentcolor);
|
||||
i++;
|
||||
|
||||
remaining = remaining.substring(7);
|
||||
|
||||
} while (remaining.length() > 2 && (i < strip.numPixels()));
|
||||
Homie.getLogger() << " filling rest with black" << endl;
|
||||
while (i < strip.numPixels()) {
|
||||
strip.setPixelColor(numToPos(i), strip.Color(0, 0, 0));
|
||||
i++;
|
||||
}
|
||||
|
||||
strip.show();
|
||||
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue