-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
No pwm output on ESP32 v. 3.0.0-rc1 #1549
Comments
Are you sure that you are not hunting any problems which have been resolved already ? |
Yeah, I just double-triple checked. Sorry about the false alarm on the previous issue. But this time I am actually sure. I just updated to the main branch and still no audio output... I can test with a different HW later if you'd like. |
I read the code and did some tests and so far it seems like the ledc controller is getting attached properly. ============ Before Setup End ============ I am not getting the debug prints (LOGI, etc.) for some reason, not yet sure how to turn them on, but I'll figure that out or just temporarily replace them with printf statements. Setting the core debug level to verbose did not help... When I tried putting print statements into the timer callback, they crash the ESP (not entirely surprising, since it's an ISR), but that seems to suggest the timer is firing... I will need to do a minimum ledc test to see what's wrong and debug it further. I was suspecting that the default output pin is different for idf 4 and 5 for some reason, but that doesn't seem to be the case either. I hav work tomorrow, but I'll try figuring it out. It's pretty odd. |
I think I have found it: the ledWrite needed the channel in the prior version, but now it requires the pin. I did not have the chance to test the correction yet... ps. you can define the log level in your sketch: e.g. by changing AudioLogger::Warning to AudioLogger::Debug |
Okay, thank you! That works! There is some crackling in the tone, but I have yet to determine if this is a hardware or a software issue. Thank you very much. |
Problem Description
The streams-generator-pwm.ino example works just fine on version 2.x, but on 3.x it produces no output with the same code, IDE and hardware configuration. I will investigate further.
Device Description
Nodemcu 32S
Sketch
Other Steps to Reproduce
No response
What is your development environment
No response
I have checked existing issues, discussions and online documentation
The text was updated successfully, but these errors were encountered: