Skip to content

Commit

Permalink
Fixup example MCO output on PA8
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Mar 7, 2023
1 parent a066691 commit 974db28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/nucleo_u575zi-q/blink/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ main()

uint32_t counter = 0;

Rcc::connect<GpioA8::Mco>();
Rcc::enableClockOutput(Rcc::ClockOutputSource::Pll, Rcc::ClockOutputPrescaler::Div16);

while (true)
{
Leds::write(counter % (1 << 3));
modm::delay(Button::read() ? 250ms : 500ms);
// Leds::write(counter % (1 << 3));
// modm::delay(Button::read() ? 250ms : 500ms);
Leds::toggle();
modm::delay(500ms);
MODM_LOG_INFO << "loop: " << counter << modm::endl;
counter++;
}
Expand Down

0 comments on commit 974db28

Please sign in to comment.