Closed
Description
Board
lolin_s3_mini
Device Description
Its not possible to control the RGB led on this board with the neopixelWrite() function since the PIN number is wrong in the pins_arduino.h
The pin definition for this board is
#define RGB_BUILTIN LED_BUILTIN
In neopixelWrite the following operation is done
#ifdef RGB_BUILTIN
if(pin == RGB_BUILTIN){
_pin = RGB_BUILTIN-SOC_GPIO_PIN_COUNT;
}
#endif
So the for this to work the definition for this board needs to be
#define RGB_BUILTIN LED_BUILTIN+SOC_GPIO_PIN_COUNT
Not sure if the macro or the LED_BUILTIN constant should be changed so I put it as a bug report instead of PR.
If this is changed its possible to change the rgb led color on this board.
Hardware Configuration
Just plain board not connections
Version
v2.0.14
IDE Name
PlatformIO
Operating System
Windows 11
Flash frequency
40
PSRAM enabled
yes
Upload speed
115200
Description
It should be possible to control the RGB led with neopixel on this board.
Sketch
#include <Arduino.h>
void setup() {
neopixelWrite(RGB_BUILTIN, 255, 0, 0);
delay(1000);
neopixelWrite(RGB_BUILTIN, 0, 255, 0);
delay(1000);
neopixelWrite(RGB_BUILTIN, 0, 0, 255);
}
void loop() {
}
Debug Message
E (240) rmt: rmt_set_gpio(526): RMT GPIO ERROR
E (240) rmt: rmt_config(686): set gpio for RMT driver failed
[ 331][D][esp32-hal-rmt.c:615] rmtInit(): -- TX RMT - CH 0 - 1 RAM Blocks - pin 254
[ 337][E][esp32-hal-rmt.c:631] rmtInit(): RMT failed to initilize.
[ 343][E][esp32-hal-rgb-led.c:18] neopixelWrite(): RGB LED driver initialization failed!
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done