From db9c9f42aaf020c90da3c844fea2dac16053781f Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Thu, 19 Aug 2021 09:17:09 +0200 Subject: [PATCH] Turn off all LEDs after init --- src/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 11f4ca6..55c1daf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -134,6 +134,19 @@ void setup() { ml::leds.SetMode(4, ml::Color::green, ml::Mode::on); ml::leds.Step(); + // Turn off all LEDs after init + ml::leds.SetMode(0, ml::Color::green, ml::Mode::off); + ml::leds.SetMode(1, ml::Color::green, ml::Mode::off); + ml::leds.SetMode(2, ml::Color::green, ml::Mode::off); + ml::leds.SetMode(3, ml::Color::green, ml::Mode::off); + ml::leds.SetMode(4, ml::Color::green, ml::Mode::off); + ml::leds.SetMode(0, ml::Color::red, ml::Mode::off); + ml::leds.SetMode(1, ml::Color::red, ml::Mode::off); + ml::leds.SetMode(2, ml::Color::red, ml::Mode::off); + ml::leds.SetMode(3, ml::Color::red, ml::Mode::off); + ml::leds.SetMode(4, ml::Color::red, ml::Mode::off); + ml::leds.Step(); + } static constexpr const uint8_t maxMsgLen = 10;