Closed scls19fr closed 8 years ago
Hi,
we might use this class https://github.com/RaspberryPi-Samples/io/blob/master/button.py to manage pushed buttons so it will be possible to have unit tests see https://github.com/RaspberryPi-Samples/io/blob/master/tests/test_button.py
Kind regards
PS: if my Pingo PR about Enum is accepted we will have to change
import pingo
to
from pingo import Mode, State
and
pin.mode = pingo.IN
pin.mode = Mode.IN
pingo.HIGH
State.High
Hi,
we might use this class https://github.com/RaspberryPi-Samples/io/blob/master/button.py to manage pushed buttons so it will be possible to have unit tests see https://github.com/RaspberryPi-Samples/io/blob/master/tests/test_button.py
Kind regards