mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 04:51:31 +11:00
Set button as pull-up.
This commit is contained in:
parent
ac88d89939
commit
ffffa7368a
|
@ -66,7 +66,7 @@ fn main() -> ! {
|
||||||
let mut led_pin = pins.led.into_push_pull_output();
|
let mut led_pin = pins.led.into_push_pull_output();
|
||||||
|
|
||||||
// Our button input
|
// 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
|
// Run forever, setting the LED according to the button
|
||||||
loop {
|
loop {
|
||||||
|
|
Loading…
Reference in a new issue