Skip to content

Commit

Permalink
Change to pulldown
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Oct 31, 2024
1 parent d783f35 commit 8b8a200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gpio_shared_button_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> Result<(), Box<dyn Error>> {
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();
Expand Down

0 comments on commit 8b8a200

Please sign in to comment.