Merge pull request #8 from relic-se/any_button_pressed-fix
Some checks failed
Build CI / test (push) Has been cancelled
Some checks failed
Build CI / test (push) Has been cancelled
Invert `any_button_pressed` logic for pull-up
This commit is contained in:
commit
71dbc2ae38
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue