Fix examples to build cleanly if PICO_DEFAULT_LED_PIN isn't defined

This commit is contained in:
Andrew Scheller
2021-03-04 11:32:56 +00:00
committed by Graham Sanderson
parent a68688f191
commit 7915827d7a
5 changed files with 26 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ bool __no_inline_not_in_flash_func(get_bootsel_button)() {
int main() {
#ifndef PICO_DEFAULT_LED_PIN
#warning picobooard/button example requires a board with a regular LED
#warning picoboard/button example requires a board with a regular LED
#else
gpio_init(PICO_DEFAULT_LED_PIN);
gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT);