Python library for TSC2007 resistive touch screen driver

  • Author(s): ladyada

Implementation Notes


Software and Dependencies:

class adafruit_tsc2007.TSC2007(i2c, address=72, irq=None)

A driver for the TSC2007 resistive touch sensor.

command(function, power, resolution) int

Write a command byte to the TSC2007 and read the 2-byte response

property touch: dict

Returns the current touch point

property touched: bool

Returns whether the panel is touched. If irq pin is set, uses the pin value. If not, the TSC2007 is polled and pressure is checked