Playing with a ESP32 mini board I got into this issue.
Using Pin 2 as this is the onboard LED
Any idea why?
Code: Select all
>>> p=Pin(2,Pin.OUT)
>>> pw=PWM(p)
>>> pw.deinit()
>>> p.value()
0
>>> p
Pin(2)
>>> p.value()
0
>>> p.on()
>>> p.off()
>>> p.value()
0
>>> p.on()
>>> p.value()
0
>>>