Open rkompass opened 2 years ago
Perhaps I should add that a LED at pin 9 started to shine with half intensity, and it continued to be on even after pwm0.deinit. That's how I noted the problem.
Same issue here. I can [pin].deinit() but still control the duty cycle of that pin. PWM is still initialized.
Can confirm this issue is present on ESP32. I'm connecting a number of buzzers to the board and notice that sounding one of them sounds all of them after they have been initialized. Deinitializing does not prevent this. Pin(X, Pin.IN) does.
The title tells the problem and the following code illustrates it.