From 8b8a200b77340f8eb3275ffc6eeb2c1e05eb0804 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Thu, 31 Oct 2024 11:29:14 +0200 Subject: [PATCH] Change to pulldown --- examples/gpio_shared_button_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gpio_shared_button_state.rs b/examples/gpio_shared_button_state.rs index a86bbb8..aa99363 100644 --- a/examples/gpio_shared_button_state.rs +++ b/examples/gpio_shared_button_state.rs @@ -21,7 +21,7 @@ fn main() -> Result<(), Box> { let shared_state = Arc::new(Mutex::new(0)); // Configure the input pin. - let mut input_pin = Gpio::new()?.get(INPUT_PIN_GPIO)?.into_input_pullup(); + let mut input_pin = Gpio::new()?.get(INPUT_PIN_GPIO)?.into_input_pulldown(); // We need to clone this as set_async_interrupt will move it and cant be used afterward if so let shared_state_hold = shared_state.clone();