fix: recognize actual button, not wrong one

This commit was merged in pull request #30.
This commit is contained in:
2026-08-22 18:29:35 +02:00
parent 07c5210d7b
commit b6f43d1055
7 changed files with 136 additions and 75 deletions
+6 -6
View File
@@ -95,12 +95,12 @@ 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.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()),
up: Input::new(peripherals.GPIO38, button_config),
down: Input::new(peripherals.GPIO39, button_config),
left: Input::new(peripherals.GPIO40, button_config),
right: Input::new(peripherals.GPIO41, button_config),
back: Input::new(peripherals.GPIO42, button_config),
ok: Input::new(peripherals.GPIO45, button_config),
};
log::info!("Setup complete, entering main loop");