Skip to content

Commit

Permalink
Warn when using blink_simple without PICO_DEFAULT_LED_PIN (#598)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
will-v-pi authored Feb 13, 2025
1 parent bc20ff6 commit 0201e5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blink_simple/blink_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#define LED_DELAY_MS 250
#endif

#ifndef PICO_DEFAULT_LED_PIN
#warning blink_simple example requires a board with a regular LED
#endif

// Initialize the GPIO for the LED
void pico_led_init(void) {
#ifdef PICO_DEFAULT_LED_PIN
Expand Down

0 comments on commit 0201e5f

Please sign in to comment.