diff --git a/micropython/modules_py/pimoroni.py b/micropython/modules_py/pimoroni.py index f83b2817..d59bada5 100644 --- a/micropython/modules_py/pimoroni.py +++ b/micropython/modules_py/pimoroni.py @@ -96,7 +96,7 @@ class Button: self.invert = invert self.repeat_time = repeat_time self.hold_time = hold_time - self.pin = Pin(button, pull=Pin.PULL_UP if invert else Pin.PULL_DOWN) + self.pin = Pin(button, Pin.IN, Pin.PULL_UP if invert else Pin.PULL_DOWN) self.last_state = False self.pressed = False self.pressed_time = 0