From 40068e3d3f54242f789d603bb0351ebe14bb7715 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Wed, 15 Jan 2025 15:23:02 +0000 Subject: [PATCH] Warn when using blink_simple without PICO_DEFAULT_LED_PIN 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) --- blink_simple/blink_simple.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blink_simple/blink_simple.c b/blink_simple/blink_simple.c index 3100a4e4b..0f6ad27a6 100644 --- a/blink_simple/blink_simple.c +++ b/blink_simple/blink_simple.c @@ -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