Basic arduino blink

This commit is contained in:
Werner
2021-12-25 08:13:42 -03:00
parent 7386595421
commit 536616d424
5 changed files with 84 additions and 0 deletions

19
Source/Main.rs Normal file
View File

@ -0,0 +1,19 @@
#![no_std]
#![no_main]
#![allow(non_snake_case)]
#![allow(unused_imports)]
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();
loop {
led.toggle();
arduino_hal::delay_ms(1000);
}
}