-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Buzzer remains active when pin unconfigured (ESP32) (minor issue) #20732
Comments
Testing with a LED, I'm also seeing this with ESP32-D0WDQ6 v1.0, but not on ESP32-C3. |
Is it only GPIO27 as original GPIO and then any other GPIO or does it happen with any two GPIOs? You might want to try GPIOViewer and see if it also pops up with unexpected changing GPIO's. |
My testing was with yet another pair of gpio pins (12,13), and the GPIO viewer only shows the pin configured as Buzzer, while both LED outputs are blinking. Not sure what "see if it also pops up with unexpected changing GPIO's" means. |
In my case (25,5) the unconfigured pin did not show any signs of activity in GPIO viewer. |
GPIO Viewer initially shows configured GPIO's and after that only new changing GPIO's. If they do not change between sampling time (default 100mS) they won't pop up as active GPIO. |
Ah verified! Great fun. What's happening here. For some reason the PWM channel is not released. A reset releases the PWM channel. Investigating..... |
It's also a problem with moved PWM channels; The GPIO's, once a PWM now set to None are still performing like PWM GPIO's. |
Thie may lead to a solution micropython/micropython#5737 ... |
OK. I have a fix. Need to further test where to use and what the impact will be.
|
This will fix the GUI Module Config. Still need to fix Template Config and command line GPIO config changes. Give it a try. |
Now the Buzzer from the previous boot seems to be gone for good. |
Just tested on the updated precompiled ESP32-S3 build, and am seeing the previous Buzzer pin joining the party. |
Thx. The fix only solved the issue on esp32. I'll make it work for all AND on every restart. |
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
The "buzzer" function remains active on a GPIO pin configured as "buzzer" after that pin gets unconfigured
while a different GPIO pin is configured as "buzzer".
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
SO111 1
buzzer
commandbuzzer 2,3,4
RESULT: The buzzer waveform appears both on GPIO27 and GPIO0
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
The buzzer waveform should only appear on GPIO0
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: