fix: recognize actual button, not wrong one
This commit was merged in pull request #30.
This commit is contained in:
+6
-6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user