Skip to content

Commit 153e078

Browse files
committed
Invert any_button_pressed logic for pull-up
1 parent 17d3868 commit 153e078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_fruitjam/peripherals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def any_button_pressed(self) -> bool:
202202
"""
203203
Return whether any button is pressed
204204
"""
205-
return True in [button.value for (i, button) in enumerate(self._buttons)]
205+
return True in [not button.value for (i, button) in enumerate(self._buttons)]
206206

207207
@property
208208
def dac(self):

0 commit comments

Comments
 (0)