adafruit_cst8xx

CST8xx capacitive touch driver for CircuitPython

  • Author(s): Melissa LeBlanc-Williams, ladyada

Implementation Notes

Hardware:

Software and Dependencies:

# * Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice

class adafruit_cst8xx.Adafruit_CST8XX(i2c, address=_CST_DEFAULT_I2C_ADDR, debug=False, irq_pin=None)

A driver for the CST8XX Series capacitive touch sensors.

property touched: int

Returns the number of touches currently detected

property touches: List[dict]

Returns a list of touchpoint dicts, with ‘x’ and ‘y’ containing the touch coordinates, and ‘id’ as the touch # for multitouch tracking