nanoESP32-C6N16 - Builtin RGB not working
Posted: Wed Jan 22, 2025 3:25 pm
Hi Everybody.
I bought two nanoESP32-C6N16 modules in order to learn using ESP32.
In order to start taking confidence, in my PC running Win10 I installed the Arduino IDE, I correctly connected the module, got a sketch on the internet that manage the builtin RGB LED (WS2812b) using the following code:
void setup() {
// No need to initialize the RGB LED
pinMode(11, OUTPUT); // Just to understand if running
}
void loop() {
#ifdef RGB_BUILTIN
digitalWrite(11, HIGH); // Running?
digitalWrite(RGB_BUILTIN, HIGH); // Turn the RGB LED white
delay(1000);
digitalWrite(RGB_BUILTIN, LOW); // Turn the RGB LED off
delay(1000);
neopixelWrite(RGB_BUILTIN,RGB_BRIGHTNESS,0,0); // Red
delay(1000);
neopixelWrite(RGB_BUILTIN,0,RGB_BRIGHTNESS,0); // Green
digitalWrite(11, LOW); // Running?
delay(1000);
neopixelWrite(RGB_BUILTIN,0,0,RGB_BRIGHTNESS); // Blue
delay(1000);
neopixelWrite(RGB_BUILTIN,0,0,0); // Off / black
delay(1000);
#endif
That code compiles and uploads corretly in the module but the builtin LED doesn't light at all.
None of the two modules I bought can light the LED.
I am not new to these technologies but it's the first time I approach ESP32.
Could please somebody drive me in the right direction in order to have the LED working?
Thank you very much indeed.
I bought two nanoESP32-C6N16 modules in order to learn using ESP32.
In order to start taking confidence, in my PC running Win10 I installed the Arduino IDE, I correctly connected the module, got a sketch on the internet that manage the builtin RGB LED (WS2812b) using the following code:
void setup() {
// No need to initialize the RGB LED
pinMode(11, OUTPUT); // Just to understand if running
}
void loop() {
#ifdef RGB_BUILTIN
digitalWrite(11, HIGH); // Running?
digitalWrite(RGB_BUILTIN, HIGH); // Turn the RGB LED white
delay(1000);
digitalWrite(RGB_BUILTIN, LOW); // Turn the RGB LED off
delay(1000);
neopixelWrite(RGB_BUILTIN,RGB_BRIGHTNESS,0,0); // Red
delay(1000);
neopixelWrite(RGB_BUILTIN,0,RGB_BRIGHTNESS,0); // Green
digitalWrite(11, LOW); // Running?
delay(1000);
neopixelWrite(RGB_BUILTIN,0,0,RGB_BRIGHTNESS); // Blue
delay(1000);
neopixelWrite(RGB_BUILTIN,0,0,0); // Off / black
delay(1000);
#endif
That code compiles and uploads corretly in the module but the builtin LED doesn't light at all.
None of the two modules I bought can light the LED.
I am not new to these technologies but it's the first time I approach ESP32.
Could please somebody drive me in the right direction in order to have the LED working?
Thank you very much indeed.