Skip to content

Commit 324b15a

Browse files
authored
Merge pull request #1043 from isaac-webb/main
Fix Button class on Pico 2W
2 parents e8260bf + 9883943 commit 324b15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/modules_py/pimoroni.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, button, invert=True, repeat_time=200, hold_time=1000):
9696
self.invert = invert
9797
self.repeat_time = repeat_time
9898
self.hold_time = hold_time
99-
self.pin = Pin(button, pull=Pin.PULL_UP if invert else Pin.PULL_DOWN)
99+
self.pin = Pin(button, Pin.IN, Pin.PULL_UP if invert else Pin.PULL_DOWN)
100100
self.last_state = False
101101
self.pressed = False
102102
self.pressed_time = 0

0 commit comments

Comments
 (0)