25 lines
412 B
Rust
25 lines
412 B
Rust
|
#![no_std]
|
||
|
#![no_main]
|
||
|
|
||
|
// use core::panic::PanicInfo;
|
||
|
|
||
|
// #[panic_handler]
|
||
|
// fn panic(info: &PanicInfo) -> ! {
|
||
|
// loop {}
|
||
|
// }
|
||
|
|
||
|
use panic_halt as _;
|
||
|
|
||
|
#[arduino_hal::entry]
|
||
|
fn main() -> ! {
|
||
|
let dp = arduino_hal::Peripherals::take().unwrap();
|
||
|
let pins = arduino_hal::pins!(dp);
|
||
|
|
||
|
let mut led = pins.d13.into_output();
|
||
|
|
||
|
loop {
|
||
|
led.toggle();
|
||
|
arduino_hal::delay_ms(1000);
|
||
|
}
|
||
|
}
|