Closed
Description
Let's look at remaking the interface to less directly follow the Arduino and Raspberry Pi Python library (which also should probably be updated in the same way and eventually share the same codebase). Using properties to represent touch state might be more in line with python style.
Also consider for the touched function a variation that returns a 12-tuple of bools. This would allow a quick single I2C call lookup of all the touch state and make it easy to parse out results, like:
touched_pins = mpr121.touched_pins() # Returns 12-tuple of bools
if touched_pins[3]:
print('Pin 4 touched!')
Metadata
Metadata
Assignees
Labels
No labels