From a90400c3ee163c0cc767dabe7a6e7539ac22768d Mon Sep 17 00:00:00 2001 From: starcalc Date: Thu, 3 Oct 2019 21:05:36 +0200 Subject: [PATCH] Default effect vor dem Homie.setup(), damit es auch ohne WLAN funktioniert. --- esp-pixelbox.ino | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/esp-pixelbox.ino b/esp-pixelbox.ino index c05e019..cb555a8 100644 --- a/esp-pixelbox.ino +++ b/esp-pixelbox.ino @@ -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); }