Merge pull request #8 from relic-se/any_button_pressed-fix
Some checks failed
Build CI / test (push) Has been cancelled

Invert `any_button_pressed` logic for pull-up
This commit is contained in:
foamyguy 2025-08-12 14:12:23 -05:00 committed by GitHub
commit 71dbc2ae38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,7 +202,7 @@ class Peripherals:
""" """
Return whether any button is pressed Return whether any button is pressed
""" """
return True in [button.value for (i, button) in enumerate(self._buttons)] return True in [not button.value for (i, button) in enumerate(self._buttons)]
@property @property
def dac(self): def dac(self):