Call LED::Step() correctly
parent
9122a33693
commit
ab01413116
10
src/main.cpp
10
src/main.cpp
|
|
@ -105,7 +105,7 @@ void setup() {
|
||||||
|
|
||||||
shr16::shr16.Init();
|
shr16::shr16.Init();
|
||||||
ml::leds.SetMode(4, ml::Color::green, ml::Mode::blink0);
|
ml::leds.SetMode(4, ml::Color::green, ml::Mode::blink0);
|
||||||
ml::leds.Step(0);
|
ml::leds.Step();
|
||||||
|
|
||||||
// @@TODO if the shift register doesn't work we really can't signalize anything, only internal variables will be accessible if the UART works
|
// @@TODO if the shift register doesn't work we really can't signalize anything, only internal variables will be accessible if the UART works
|
||||||
|
|
||||||
|
|
@ -116,7 +116,7 @@ void setup() {
|
||||||
};
|
};
|
||||||
hu::usart1.Init(&usart_conf);
|
hu::usart1.Init(&usart_conf);
|
||||||
ml::leds.SetMode(3, ml::Color::green, ml::Mode::on);
|
ml::leds.SetMode(3, ml::Color::green, ml::Mode::on);
|
||||||
ml::leds.Step(0);
|
ml::leds.Step();
|
||||||
|
|
||||||
// @@TODO if both shift register and the UART are dead, we are sitting ducks :(
|
// @@TODO if both shift register and the UART are dead, we are sitting ducks :(
|
||||||
|
|
||||||
|
|
@ -131,15 +131,15 @@ void setup() {
|
||||||
};
|
};
|
||||||
spi::Init(SPI0, &spi_conf);
|
spi::Init(SPI0, &spi_conf);
|
||||||
ml::leds.SetMode(2, ml::Color::green, ml::Mode::on);
|
ml::leds.SetMode(2, ml::Color::green, ml::Mode::on);
|
||||||
ml::leds.Step(0);
|
ml::leds.Step();
|
||||||
|
|
||||||
// tmc::Init()
|
// tmc::Init()
|
||||||
ml::leds.SetMode(1, ml::Color::green, ml::Mode::on);
|
ml::leds.SetMode(1, ml::Color::green, ml::Mode::on);
|
||||||
ml::leds.Step(0);
|
ml::leds.Step();
|
||||||
|
|
||||||
// adc::Init();
|
// adc::Init();
|
||||||
ml::leds.SetMode(0, ml::Color::green, ml::Mode::on);
|
ml::leds.SetMode(0, ml::Color::green, ml::Mode::on);
|
||||||
ml::leds.Step(0);
|
ml::leds.Step();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendMessage(const mp::ResponseMsg &msg) {
|
void SendMessage(const mp::ResponseMsg &msg) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue