summaryrefslogtreecommitdiffstats
path: root/src/bin/btn-test.rs
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-15 19:22:46 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-15 19:22:46 +0100
commit8341bc99e8956b4e941bfaa4638c8b02b3dddd0d (patch)
treee6d51be90a963931c75b87f78d23ec525b31b431 /src/bin/btn-test.rs
parentcf4d8716a46e84a3fa4a9ef60ace6bbb0e7682e6 (diff)
downloaddumbswitch-8341bc99e8956b4e941bfaa4638c8b02b3dddd0d.tar.gz
dumbswitch-8341bc99e8956b4e941bfaa4638c8b02b3dddd0d.tar.bz2
dumbswitch-8341bc99e8956b4e941bfaa4638c8b02b3dddd0d.tar.lz
dumbswitch-8341bc99e8956b4e941bfaa4638c8b02b3dddd0d.zip

feat: ok more minimal

Diffstat (limited to 'src/bin/btn-test.rs')
-rw-r--r--src/bin/btn-test.rs2
1 files changed, 1 insertions, 1 deletions
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 {