Skip to content

Commit 5c8cc7a

Browse files
mitra42pre-commit-ci-lite[bot]lucasssvaz
authored
Update pins_arduino.h for lolin_c3_pico to define LED as RGB rather than the default GRB (#11851)
* Update pins_arduino.h for lolin_c3_pico to define LED as RGB rather than the default GRB * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Lucas Saavedra Vaz <[email protected]>
1 parent 393834b commit 5c8cc7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

variants/lolin_c3_pico/pins_arduino.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ 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 // allow testing #ifdef LED_BUILTIN
1616
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
17-
#define RGB_BUILTIN LED_BUILTIN
18-
#define RGB_BRIGHTNESS 64
17+
#define RGB_BUILTIN LED_BUILTIN
18+
#define RGB_BRIGHTNESS 64
19+
#define RGB_BUILTIN_LED_COLOR_ORDER LED_COLOR_ORDER_RGB
1920

2021
static const uint8_t TX = 21;
2122
static const uint8_t RX = 20;

0 commit comments

Comments
 (0)