-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Board
ESP32 (dev module)
Device Description
2USB CYD aka. ESP32-2432S028R
Hardware Configuration
A single temperature sensor, but removing it makes no difference.
Version
v3.2.1
IDE Name
Arduino 2
Operating System
Window 11
Flash frequency
40
PSRAM enabled
no
Upload speed
921600
Description
Using a CYD (2USB), setup RGB LEDbacklight:
ledcAttach(backlightPin, 12000, 8); // 12 kHz PWM, 8-bit resolution ledcAttach(redPin, 12000, 8); ledcAttach(greenPin, 12000, 8); ledcAttach(bluePin, 12000, 8);
Firing the LED like so:
ledcWrite(redPin, redValue); ledcWrite(greenPin, greenValue); ledcWrite(bluePin, blueValue);
When I add the buzzer output:
pinMode(DAC_PIN, OUTPUT); ledcAttach(DAC_PIN, 12000, 8);
And set a tone:
ledcWriteTone(DAC_PIN, freq);
Instead of beeping and flashing together, my RGB LED now turns white and refuses to respond, staying white thereafter, and no amount of disabling the DAC or resetting anything will make it respond.
This used to work fine with 3.2.0.
Sketch
Code included in description.
Debug Message
No error messages or crashing, aside from the RGB LED crashing.
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.