Skip to content

Commit 2362033

Browse files
committed
Changed LED_BUILTIN to a macro to better support boards that do not have a built-in LED.
Fixes #758
1 parent 4141c1a commit 2362033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/arduino/variants/mega/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static const uint8_t SCK = 52;
3939

4040
static const uint8_t SDA = 20;
4141
static const uint8_t SCL = 21;
42-
static const uint8_t LED_BUILTIN = 13;
42+
#define LED_BUILTIN 13
4343

4444
static const uint8_t A0 = 54;
4545
static const uint8_t A1 = 55;
@@ -360,4 +360,4 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
360360

361361
#endif
362362

363-
#endif
363+
#endif

0 commit comments

Comments
 (0)