Skip to content

Commit 577923e

Browse files
committed
Define the RGB_BUILTIN as shown in espressif#6979.
1 parent ffa2194 commit 577923e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

variants/cytron_maker_feather_aiot_s3/pins_arduino.h

+13-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define USB_VID 0x303A
78
#define USB_PID 0x80F8
@@ -18,12 +19,19 @@
1819
#define digitalPinHasPWM(p) (p < 46)
1920

2021

21-
#define LED 2 // Status LED.
22-
#define LED_BUILTIN 2
2322

24-
#define RGB 46 // RGB LED.
25-
#define RGB_BUILTIN 46
26-
#define NEOPIXEL 46
23+
static const uint8_t LED_BUILTIN = 2; // Status LED.
24+
static const uint8_t RGB_BUILTIN = SOC_GPIO_PIN_COUNT + 46; // RGB LED.
25+
26+
#define BUILTIN_LED LED_BUILTIN // Backward compatibility
27+
#define LED_BUILTIN LED_BUILTIN
28+
#define LED LED_BUILTIN
29+
#define RGB_BUILTIN RGB_BUILTIN
30+
#define RGB RGB_BUILTIN
31+
#define NEOPIXEL RGB_BUILTIN
32+
#define RGB_BRIGHTNESS 65
33+
34+
2735

2836
#define VP_EN 11 // V Peripheral Enable.
2937
#define BUZZER 12 // Piezo Buzzer.

0 commit comments

Comments
 (0)