plumb auto interface into controller
This commit is contained in:
parent
b956c543fc
commit
311427b0a5
1 changed files with 31 additions and 13 deletions
|
|
@ -89,7 +89,7 @@ async fn main(spawner: Spawner) {
|
|||
spawner.spawn(logger_task(driver)).unwrap();
|
||||
|
||||
let limit_switch = Input::new(p.PIN_16, Pull::Up);
|
||||
let mut auto_status = Output::new(p.PIN_2, Level::Low);
|
||||
let mut auto_status = Output::new(p.PIN_2, Level::High);
|
||||
|
||||
let mut d: pwm::Config = Default::default();
|
||||
d.divider = 40.into();
|
||||
|
|
|
|||
Loading…
Reference in a new issue