Invert any_button_pressed logic for pull-up

This commit is contained in:
Cooper Dalrymple 2025-08-06 14:49:02 -05:00
parent 17d3868ed6
commit 153e078870

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):