both LEDs working!
This commit is contained in:
parent
910010ba22
commit
24be0a8f2a
|
@ -222,6 +222,9 @@ mod app {
|
|||
|
||||
write_lcd(&mut lcd, &mut delay, "Starting");
|
||||
|
||||
heartbeat::spawn().unwrap();
|
||||
second_heartbeat::spawn().unwrap();
|
||||
|
||||
(
|
||||
Shared { delay },
|
||||
Local {
|
||||
|
@ -265,7 +268,7 @@ mod app {
|
|||
|
||||
// Re-spawn this task after 1 second
|
||||
let one_and_one_half_second =
|
||||
Duration::<u64, MONO_NUM, MONO_DENOM>::from_ticks((ONE_SEC_TICKS as f32 * 1.5) as u64);
|
||||
heartbeat::spawn_after(one_and_one_half_second).unwrap();
|
||||
Duration::<u64, MONO_NUM, MONO_DENOM>::from_ticks((ONE_SEC_TICKS as f64*1.14)as u64);
|
||||
second_heartbeat::spawn_after(one_and_one_half_second).unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue