update wokwi with buttons

This commit is contained in:
2026-08-14 20:36:18 +00:00
parent f38181d98a
commit ca4ea67e7b
2 changed files with 86 additions and 41 deletions
+5 -5
View File
@@ -94,11 +94,11 @@ async fn main(spawner: Spawner) {
let button_config = InputConfig::default().with_pull(Pull::Up);
let inputs = Inputs {
up: Input::new(peripherals.GPIO38, button_config.clone()),
down: Input::new(peripherals.GPIO0, button_config.clone()),
left: Input::new(peripherals.GPIO1, button_config.clone()),
right: Input::new(peripherals.GPIO2, button_config.clone()),
back: Input::new(peripherals.GPIO3, button_config.clone()),
ok: Input::new(peripherals.GPIO4, button_config.clone()),
down: Input::new(peripherals.GPIO39, button_config.clone()),
left: Input::new(peripherals.GPIO40, button_config.clone()),
right: Input::new(peripherals.GPIO41, button_config.clone()),
back: Input::new(peripherals.GPIO42, button_config.clone()),
ok: Input::new(peripherals.GPIO45, button_config.clone()),
};
spawner.spawn(navigation::run(inputs, display).expect("run task failed"));