adafruit_ft5336

CircuitPython driver for the FT5336 touch screen controller

  • Author(s): Liz Clark

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_ft5336.Adafruit_FT5336(i2c, i2c_addr: int = _DEFAULT_ADDR, max_touches: int = 5)

Adafruit FT5336 touch screen driver

Initialization over I2C

Parameters:
  • i2c_addr (int) – I2C address (default 0x38)

  • max_touches (int) – Maximum number of touch points to track. Defaults to 5.

point(point_index: int) Tuple

X, Y and Z value from a specified touch input

Parameters:

point_index (int) – Touch input to read (0 - max_touches)

Returns:

X, Y and Z values

Return type:

Tuple

property points: List

X, Y and Z values from each available touch input

Returns:

X, Y and Z values in a list

Return type:

List

property touched: int

Count of touch inputs detected

Returns:

Count of touch inputs detected (0-max_touches)

Return type:

int