From 8341bc99e8956b4e941bfaa4638c8b02b3dddd0d Mon Sep 17 00:00:00 2001 From: memdmp Date: Sat, 15 Mar 2025 19:22:46 +0100 Subject: feat: ok more minimal --- src/bin/btn-test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/btn-test.rs') diff --git a/src/bin/btn-test.rs b/src/bin/btn-test.rs index b33e402..87663ef 100644 --- a/src/bin/btn-test.rs +++ b/src/bin/btn-test.rs @@ -16,7 +16,7 @@ fn main() -> ! { // Set GPIO7 as an output, and set its state high initially. let mut led = Output::new(peripherals.GPIO1, Level::Low); - let button = Input::new(peripherals.GPIO3, Pull::Up); + let button = Input::new(peripherals.GPIO3, Pull::Down); // Check the button state and set the LED state accordingly. loop { -- cgit v1.2.3