Skip to content
Snippets Groups Projects
Commit dd7b5768 authored by Carl Österberg's avatar Carl Österberg
Browse files

bare7_2

parent 04606f40
No related branches found
No related tags found
No related merge requests found
......@@ -77,15 +77,16 @@ const APP: () = {
rprintln!("toggle @ {:?}", Instant::now());
//use the set high/low for push pull output
if *TOGGLE {
cx.resources.led.set_high().ok();
// if *TOGGLE {
// cx.resources.led.set_high().ok();
} else {
cx.resources.led.set_low().ok();
}
// } else {
// cx.resources.led.set_low().ok();
// }
*TOGGLE = !*TOGGLE;
// *TOGGLE = !*TOGGLE;
_toggle_generic(cx.resources.led, TOGGLE);
cx.schedule.toggle(cx.scheduled + OFFSET.cycles()).unwrap();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment