Skip to content

Commit 84b20f0

Browse files
authored
feat(rgbled): add color order enum
1 parent 92f3d3b commit 84b20f0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cores/esp32/esp32-hal-rgb-led.h

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ extern "C" {
1111
#define RGB_BRIGHTNESS 64
1212
#endif
1313

14+
typedef enum {
15+
LED_COLOR_ORDER_RGB,
16+
LED_COLOR_ORDER_BGR,
17+
LED_COLOR_ORDER_BRG,
18+
LED_COLOR_ORDER_RBG,
19+
LED_COLOR_ORDER_GBR,
20+
LED_COLOR_ORDER_GRB
21+
} rgb_led_color_order_t;
22+
1423
void neopixelWrite(uint8_t pin, uint8_t red_val, uint8_t green_val, uint8_t blue_val);
1524

1625
#ifdef __cplusplus

0 commit comments

Comments
 (0)