blob: 21f894bd1acd80e4fa8c38ddfa36a7238da1c137 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#![no_std]
#![no_main]
use panic_halt as _;
#[arduino_hal::entry]
fn main() -> ! {
let dp = arduino_hal::Peripherals::take().unwrap();
let pins = arduino_hal::pins!(dp);
// Digital pin 13 is also connected to an onboard LED marked "L"
let mut led = pins.d13.into_output();
led.set_high();
loop {}
}
|