try to workout buttons

This commit is contained in:
2026-08-14 20:47:44 +00:00
parent ca4ea67e7b
commit e361154295
2 changed files with 29 additions and 9 deletions
+2 -3
View File
@@ -72,7 +72,7 @@ async fn main(spawner: Spawner) {
peripherals.GPIO12,
)));
setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await;
//setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await;
log::info!("Setup complete, entering main loop");
@@ -87,8 +87,6 @@ async fn main(spawner: Spawner) {
log::error!("NFC SAM configuration failed");
}
log::info!("Setup complete, entering main loop");
let mut nav_state = NavigationState::new();
let button_config = InputConfig::default().with_pull(Pull::Up);
@@ -101,5 +99,6 @@ async fn main(spawner: Spawner) {
ok: Input::new(peripherals.GPIO45, button_config.clone()),
};
log::info!("Setup complete, entering main loop");
spawner.spawn(navigation::run(inputs, display).expect("run task failed"));
}