mirror of
https://github.com/guilhermewerner/rust-avr
synced 2025-06-15 13:24:18 +00:00
20 lines
372 B
Rust
20 lines
372 B
Rust
#![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);
|
|
}
|
|
}
|