Skip to content

Commit 0201e5f

Browse files
authored
Warn when using blink_simple without PICO_DEFAULT_LED_PIN (#598)
blink_simple won't do anything without PICO_DEFAULT_LED_PIN, so raise a warning similar to other examples that rely on PICO_DEFAULT_LED_PIN (eg blinky, hello_pio)
1 parent bc20ff6 commit 0201e5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blink_simple/blink_simple.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#define LED_DELAY_MS 250
1111
#endif
1212

13+
#ifndef PICO_DEFAULT_LED_PIN
14+
#warning blink_simple example requires a board with a regular LED
15+
#endif
16+
1317
// Initialize the GPIO for the LED
1418
void pico_led_init(void) {
1519
#ifdef PICO_DEFAULT_LED_PIN

0 commit comments

Comments
 (0)