Skip to content
Snippets Groups Projects
Commit beef3866 authored by Per's avatar Per
Browse files

app

parent d4a68366
No related branches found
No related tags found
No related merge requests found
...@@ -30,10 +30,16 @@ const APP: () = { ...@@ -30,10 +30,16 @@ const APP: () = {
let p: pac::Peripherals = device; let p: pac::Peripherals = device;
let port0 = p.P0.split(); let port0 = p.P0.split();
let mut led: P0_14<gpio::Output<PushPull>> = port0.p0_14.into_push_pull_output(Level::High); let mut led: P0_14<gpio::Output<PushPull>> =
port0.p0_14.into_push_pull_output(Level::High);
hprintln!("init").unwrap();
loop { loop {
hprintln!("set_low").unwrap();
led.set_low(); led.set_low();
hprintln!("set_high").unwrap();
led.set_high(); led.set_high();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment