Turn off all LEDs after Init

pull/96/head
Alex Voinea 2021-08-20 18:57:52 +03:00 committed by DRracer
parent a6780d2224
commit 8766642a21
1 changed files with 7 additions and 0 deletions

View File

@ -133,6 +133,13 @@ void setup() {
adc::Init();
ml::leds.SetMode(0, ml::Color::green, ml::Mode::on);
ml::leds.Step();
/// Turn off all leds
for (uint8_t i = 0; i < config::toolCount; i++) {
ml::leds.SetMode(i, ml::Color::green, ml::Mode::off);
ml::leds.SetMode(i, ml::Color::red, ml::Mode::off);
}
ml::leds.Step();
}
static constexpr const uint8_t maxMsgLen = 10;