circuitpython/shared-module/gamepad
Radomir Dopieralski 280374fa63 Respect pin's pull in gamepad
While it is traditional to have buttons on pins that are pulled up, and
have the button connect them to the ground, some CircuitPython boards
(notably the CPX) have the button pins pulled low and the button
connects them to VCC.

This patch makes the gamepad only change the pin's pull if it wasn't
already set when passed to the constructor, and also makes it consider
a button pressed when its value is the opposite of its pull.
2018-03-31 21:13:02 +02:00
..
GamePad.c Respect pin's pull in gamepad 2018-03-31 21:13:02 +02:00
GamePad.h Add a `gamepad` module for handling buttons in the background. (#295) 2017-10-03 13:35:57 -07:00
__init__.c Respect pin's pull in gamepad 2018-03-31 21:13:02 +02:00
__init__.h Gracefully reset the gamepad module 2017-10-22 20:54:10 -07:00