gt911

CircuitPython Driver for Goodix GT911-based touch screens

  • Author(s): ladyada, retiredwizard, Robert Grizzell

Implementation Notes

Hardware:

Software and Dependencies:

class gt911.GT911(i2c: busio.I2C, i2c_address: int = None, rst_pin: digitalio.DigitalInOut = None, int_pin: digitalio.DigitalInOut = None, int_high: bool = False)

A driver for the GT911 capacitive touch sensor.

Parameters:
  • i2c (I2C) – The object representing the I2C interface used to communicate with the touchscreen.

  • i2c_address (int) – The I2C address of the GT911 device. This is optional, but can be useful for devices lacking RST or INT pin control.

  • rst_pin (DigitalInOut) – The object representing the RESET pin.

  • int_pin (DigitalInOut) – The object representing the INTERRUPT/IRQ pin.

property touches: list[tuple]

Get the touches from the device.

Returns:

List of touch points containing coordinates and size.

Return type:

list[tuple]