CircuitPython driver for the MPR121 capacitive touch breakout board.
See usage in the examples/simpletest.py file.
- Author(s): Tony DiCola
- Adafruit 12-Key Capacitive Touch Sensor Breakout - MPR121 (Product ID: 1982)
- Adafruit 12 x Capacitive Touch Shield for Arduino - MPR121 (Product ID: 2024)
Software and Dependencies:
- Adafruit CircuitPython firmware for the ESP8622 and M0-based boards: https://github.com/adafruit/circuitpython/releases
- Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Driver for the MPR121 capacitive touch breakout board.
Return baseline data register value for the provided pin (0-11). Useful for debugging.
Return filtered data register value for the provided pin (0-11). Useful for debugging.
Return True if the specified pin is being touched, otherwise returns False.
Reset the MPR121 into a default state ready to detect touch inputs.
Return touch state of all pins as a 12-bit value where each bit represents a pin, with a value of 1 being touched and 0 not being touched.
A tuple of touched state for all pins.
Helper class to represent a touch channel on the MPR121. Not meant to be used directly.
The raw touch measurement.
The release threshold.
The touch threshold.
Whether the touch pad is being touched or not.