Default effect vor dem Homie.setup(), damit es auch ohne WLAN funktioniert.

This commit is contained in:
starcalc 2019-10-03 21:05:36 +02:00
parent c62c28ef72
commit a90400c3ee
1 changed files with 7 additions and 6 deletions

View File

@ -412,6 +412,13 @@ void setup() {
stopAfterCompletion = false; // Default
effect = 0;
matrix.begin();
matrix.setTextWrap(false);
matrix.setBrightness(255);
strip.Plasma(); // Default effect
Udp.begin(localUdpPort);
Homie.setup();
ArduinoOTA.setHostname("pixelbox");
@ -427,12 +434,6 @@ void setup() {
strip.show();
});
ArduinoOTA.begin();
matrix.begin();
matrix.setTextWrap(false);
matrix.setBrightness(255);
strip.Plasma(); // Default effect
Udp.begin(localUdpPort);
}