RaspberryPi-Samples / py-my-key

Access control with RaspberryPi and NFC card reader
ISC License
1 stars 1 forks source link

Button #3

Closed scls19fr closed 8 years ago

scls19fr commented 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

scls19fr commented 8 years ago

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

to

pin.mode = Mode.IN

and

pingo.HIGH

to

State.High