Invert any_button_pressed logic for pull-up
This commit is contained in:
parent
17d3868ed6
commit
153e078870
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ class Peripherals:
|
|||
"""
|
||||
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
|
||||
def dac(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue