-
Notifications
You must be signed in to change notification settings - Fork 7.6k
LEDC pull request introduced regressions https://github.com/espressif/arduino-esp32/pull/6045 #7306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Suggestion how to fix ledcAttach:
Regards, |
Hello @habazut, our Developer responsible for LedC is on vacation. He will take a look on this at mid of October. Thanks for understanding. |
I have a workaround for the ledcAttach() issue (call ledc_set_pin direct) but not for the frequency issue of ledcSetup() for 1Hz. So if anyone has an idea how to get a LED to blink with PWM 1Hz, I would be grateful if you let me know. Regards, |
Hello @habazut ,
Simple rule for using LEDC I was able to set 1Hz frequency using 12 bits resolution |
Board
ESP32 Dev Module
Device Description
Dev board and LED
Hardware Configuration
GPIO connected to LED
Version
v2.0.4
IDE Name
Arduino IDE
Operating System
Linux
Flash frequency
Whatever
PSRAM enabled
no
Upload speed
115200
Description
The pull request #6045 introduced two regressions:
ledcSetup(...); ledcAttachPin(...); ledcWrite(...); // set up channel with freqency an duty cycle to blink LED
ledcDetachPin(...) // remove pin (LED OFF)
ledcAttachPin(...) // attach pin again and it continues with SAME frequency and duty as before
as ledcAttachPin nowadays resets the duty cycle of a prefectly working channel setup.
Harald.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: