ESP32-S3 crash writing Neopixel LED
Posted: Mon Oct 14, 2024 7:21 pm
I'm building a program using an ESP32-S3 dev board and have encountered a weird problem. In short, if I set GPIO 37 to output mode without doing digitalWrite(RGB_BUILTIN, HIGH) first and then call the neopixelWrite function, the chip reboots. Is this expected behavior?
My program uses GPIOs 35 through 39 and 37 is the only one that does this. This is with Arduino IDE version 2.3.3 and ESP32 board library version 3.0.5.
Test program:
My program uses GPIOs 35 through 39 and 37 is the only one that does this. This is with Arduino IDE version 2.3.3 and ESP32 board library version 3.0.5.
Test program:
Code: Select all
void setup() {
//digitalWrite(RGB_BUILTIN, HIGH); //Uncommenting this prevents crash
pinMode(37, OUTPUT);
neopixelWrite(RGB_BUILTIN, 8, 8, 8); //Crashes here (rgbLedWrite() does same)
}
void loop() {
//nothing
}