20 lines
354 B
Rust
20 lines
354 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
use arduino_hal::delay_ms;
|
|
use panic_halt as _;
|
|
|
|
#[arduino_hal::entry]
|
|
fn main() -> ! {
|
|
let peripherals = arduino_hal::Peripherals::take().unwrap();
|
|
let pins = arduino_hal::pins!(peripherals);
|
|
|
|
let mut led = pins.d13.into_output();
|
|
led.set_high();
|
|
|
|
loop {
|
|
led.toggle();
|
|
delay_ms(1000);
|
|
}
|
|
}
|