Skip to content

Commit 71dbc2a

Browse files
authored
Merge pull request #8 from relic-se/any_button_pressed-fix
Invert `any_button_pressed` logic for pull-up
2 parents 17d3868 + 153e078 commit 71dbc2a

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)