// Import the necessary libraries
use std::thread;
use std::time::Duration;

fn main() {
    loop {
        // Simulate toggling a pin
        println!("LED ON");
        thread::sleep(Duration::from_millis(500));
        println!("LED OFF");
        thread::sleep(Duration::from_millis(500));
    }
}
Loading
esp32-c6-devkitc-1