From 08325a3e67ed32bc42b95c61316f32d5bbe47a11 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Wed, 30 Aug 2023 08:23:51 +0200 Subject: [PATCH] Make LED_BUILTIN user definable --- avr/variants/pb-variant/pins_arduino.h | 4 +++- avr/variants/standard/pins_arduino.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/avr/variants/pb-variant/pins_arduino.h b/avr/variants/pb-variant/pins_arduino.h index 2b940d07..d83e5ca8 100644 --- a/avr/variants/pb-variant/pins_arduino.h +++ b/avr/variants/pb-variant/pins_arduino.h @@ -40,7 +40,9 @@ #endif // Builtin LED -#define LED_BUILTIN (13) +#if !defined(LED_BUILTIN) + #define LED_BUILTIN (13) +#endif static const uint8_t LED = LED_BUILTIN; // Analog pins diff --git a/avr/variants/standard/pins_arduino.h b/avr/variants/standard/pins_arduino.h index e2df507c..23b3be53 100644 --- a/avr/variants/standard/pins_arduino.h +++ b/avr/variants/standard/pins_arduino.h @@ -99,7 +99,9 @@ #endif // Builtin LED -#define LED_BUILTIN (13) +#if !defined(LED_BUILTIN) + #define LED_BUILTIN (13) +#endif static const uint8_t LED = LED_BUILTIN; // Analog pins