Set button as pull-up.

This commit is contained in:
Jonathan Pallant 2021-11-16 22:47:30 +00:00
parent ac88d89939
commit ffffa7368a

View file

@ -66,7 +66,7 @@ fn main() -> ! {
let mut led_pin = pins.led.into_push_pull_output();
// Our button input
let button_pin = pins.gpio15.into_pull_down_input();
let button_pin = pins.gpio15.into_pull_up_input();
// Run forever, setting the LED according to the button
loop {