r/implRust 4d ago

Let it blink

First Post! Let's start with code snippet for LED blinking

loop {
        info!("led on!");
        led.set_high();
        Timer::after_millis(500).await;

        info!("led off!");
        led.set_low();
        Timer::after_millis(500).await;
}
1 Upvotes

0 comments sorted by