blink builtin LED with button press

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

@ -2668,8 +2668,10 @@ void process_bootsel() {
void blinkTimes(int blinks) {
for (int i = 0; i < blinks; i++) {
digitalWrite(MAIN_LED_GREEN, LOW);
digitalWrite(LED_BUILTIN, HIGH);
sleep(0.1);
digitalWrite(MAIN_LED_GREEN, HIGH);
digitalWrite(LED_BUILTIN, LOW);
sleep(0.1);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.