Skip to content
Get started

GT9895 Touch Screen Controller

The gt9895 touchscreen platform allows using the touch screen controllers based on the Goodix GT9895 chip with ESPHome. The I²C is required to be set up in your configuration for this touchscreen to work.

This controller is used in the LilyGO T-Display-P4 with the AMOLED panel.

# Example configuration entry
touchscreen:
platform: gt9895
calibration:
x_min: 0
x_max: 1060
y_min: 0
y_max: 2400
  • id (Optional, ID): Manually set the ID of this touchscreen.

  • interrupt_pin (Optional, Pin Schema): The touch detection pin. It must be a GPIO of the MCU. Without it, the touchscreen is polled.

  • reset_pin (Optional, Pin Schema): The chip reset pin. It can be on an I/O expander.

  • address (Optional, int): The I²C address of the touchscreen controller. Defaults to 0x5D.

  • calibration (Required): The controller does not report its coordinate range, so the raw range must be given. The LilyGO T-Display-P4 AMOLED reports 0 to 1060 for x and 0 to 2400 for y.

  • All other options from Touchscreen.