Skip to content

Commit 6c38865

Browse files
authored
Update pins_arduino.h with correct LED_BUILTIN
1 parent 4eff7f9 commit 6c38865

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

variants/m5stack_atoms3/pins_arduino.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#define USB_VID 0x303a
88
#define USB_PID 0x1001
99

10-
// Some boards have too low voltage on this pin (board design bug)
11-
// Use different pin with 3V and connect with 48
12-
// and change this setup for the chosen pin (for example 38)
13-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48;
10+
// The board RGB led is connected to GPIO #35
11+
#define PIN_RGB_LED 35
12+
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
13+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
1414
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1515
#define LED_BUILTIN LED_BUILTIN
1616
#define RGB_BUILTIN LED_BUILTIN

0 commit comments

Comments
 (0)