update wokwi with buttons
This commit is contained in:
+5
-5
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user