make sure built in LED is on before blinking

pico-v0.1
alanbjohnston 4 years ago committed by GitHub
parent 54a8b590e3
commit e703007bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2487,6 +2487,8 @@ void process_pushbutton() {
int release = FALSE;
digitalWrite(LED_BUILTIN, HIGH); // make sure built in LED is on before starting to blink
sleep(1.0);
int pb_value = digitalRead(MAIN_PB_PIN);
@ -2578,6 +2580,8 @@ void process_bootsel() {
int release = FALSE;
digitalWrite(LED_BUILTIN, HIGH); // make sure built in LED is on before blinking
sleep(1.0);
// int pb_value = digitalRead(MAIN_PB_PIN);

Loading…
Cancel
Save

Powered by TurnKey Linux.