cst226 Touch Screen Controller

The cst226 touchscreen platform allows using the touch screen controllers based on the cst226 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 T4-S3 AMOLED Display.

../../_images/t4-s3.jpg

cst226 touchscreen on Lilygo T4-S3 AMOLED Display

Base Touchscreen Configuration

# Example configuration entry
touchscreen:
  platform: cst226
  id: my_touchscreen
  interrupt_pin: GPIO3

Configuration variables:

  • id (Optional, ID): Manually set the ID of this touchscreen.

  • interrupt_pin (Required, Pin Schema): The touch detection pin.

  • rotation (Optional): Set the rotation of the touchscreen. By default this will be set to match the display associated with the touchscreen, but this allows more control. Choices are 0, 90, 180 and 270.

  • All other options from Touchscreen.

See Also