summaryrefslogtreecommitdiffstats
path: root/src/bin/btn-test.rs
diff options
context:
space:
mode:
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 {