try to workout buttons
This commit is contained in:
+2
-3
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user