diff --git a/hardware/arduino/avr/variants/ethernet/pins_arduino.h b/hardware/arduino/avr/variants/ethernet/pins_arduino.h index 202f85464..967669822 100644 --- a/hardware/arduino/avr/variants/ethernet/pins_arduino.h +++ b/hardware/arduino/avr/variants/ethernet/pins_arduino.h @@ -44,7 +44,7 @@ static const uint8_t SCK = 13; static const uint8_t SDA = 18; static const uint8_t SCL = 19; -static const uint8_t LED_BUILTIN = 9; +#define LED_BUILTIN 9 static const uint8_t A0 = 14; static const uint8_t A1 = 15; diff --git a/hardware/arduino/avr/variants/leonardo/pins_arduino.h b/hardware/arduino/avr/variants/leonardo/pins_arduino.h index 85fb06ec9..d74683272 100644 --- a/hardware/arduino/avr/variants/leonardo/pins_arduino.h +++ b/hardware/arduino/avr/variants/leonardo/pins_arduino.h @@ -101,6 +101,7 @@ static const uint8_t SDA = 2; static const uint8_t SCL = 3; +#define LED_BUILTIN 13 // Map SPI port to 'new' pins D14..D17 static const uint8_t SS = 17; diff --git a/hardware/arduino/avr/variants/mega/pins_arduino.h b/hardware/arduino/avr/variants/mega/pins_arduino.h index f12188945..3cdbb7926 100644 --- a/hardware/arduino/avr/variants/mega/pins_arduino.h +++ b/hardware/arduino/avr/variants/mega/pins_arduino.h @@ -39,7 +39,7 @@ static const uint8_t SCK = 52; static const uint8_t SDA = 20; static const uint8_t SCL = 21; -static const uint8_t LED_BUILTIN = 13; +#define LED_BUILTIN 13 static const uint8_t A0 = 54; static const uint8_t A1 = 55; diff --git a/hardware/arduino/avr/variants/standard/pins_arduino.h b/hardware/arduino/avr/variants/standard/pins_arduino.h index e7cfb08fc..815df3c3b 100644 --- a/hardware/arduino/avr/variants/standard/pins_arduino.h +++ b/hardware/arduino/avr/variants/standard/pins_arduino.h @@ -44,7 +44,7 @@ static const uint8_t SCK = 13; static const uint8_t SDA = 18; static const uint8_t SCL = 19; -static const uint8_t LED_BUILTIN = 13; +#define LED_BUILTIN 13 static const uint8_t A0 = 14; static const uint8_t A1 = 15;