adafruit_focaltouch
¶
CircuitPython driver for common low-cost FocalTech capacitive touch chips. Currently supports FT6206 & FT6236.
Author(s): ladyada
Implementation Notes¶
Hardware:
Adafruit 2.8” TFT LCD with Cap Touch Breakout Board w/MicroSD Socket (Product ID: 2090)
Adafruit 2.8” TFT Touch Shield for Arduino w/Capacitive Touch (Product ID: 1947)
Software and Dependencies:
Adafruit CircuitPython firmware for the ESP8622 and M0-based boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library (when using I2C/SPI): https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class adafruit_focaltouch.Adafruit_FocalTouch(i2c, address=56, debug=False, irq_pin=None)[source]¶
A driver for the FocalTech capacitive touch sensor.
- property touched¶
Returns the number of touches currently detected
- property touches¶
Returns a list of touchpoint dicts, with ‘x’ and ‘y’ containing the touch coordinates, and ‘id’ as the touch # for multitouch tracking