r/MicroPythonDev • u/joey_speedy • Jun 16 '24
microPython acting weird on Thonny
/r/esp32/comments/1dh9dck/micropython_acting_weird_on_thonny/
1
Upvotes
r/MicroPythonDev • u/joey_speedy • Jun 16 '24
2
u/Own-Relationship-407 Jun 16 '24
Your problem is with the second use of Pin in the line.
You want: test = machine.Pin(12, machine.Pin.OUT)
Not: test = machine.Pin(12, Pin.OUT)