esphome-docs/components/touchscreen/ft5x06.rst
2024-06-18 16:49:30 +12:00

49 lines
1.6 KiB
ReStructuredText

FT5X06 Touch Screen Controller
===============================
.. seo::
:description: Instructions for setting up ft5x06 touch screen controller with ESPHome
:image: indicator.jpg
:keywords: FT5X06, Seeed Indicator
The ``ft5x06`` touchscreen platform allows using the touch screen controllers based on the ft5x06 chip with ESPHome.
The :ref:`I²C <i2c>` is required to be set up in your configuration for this touchscreen to work.
This controller is used in the Seeed Studio Sensecap Indicator.
.. figure:: images/indicator.jpg
:align: center
:width: 50.0%
ft5x06 touchscreen in Seeed Studio Sensecap Indicator.
Base Touchscreen Configuration
------------------------------
.. code-block:: yaml
# Example configuration entry
touchscreen:
platform: ft5x06
id: my_touchscreen
Configuration variables:
************************
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
- **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``.
- **interrupt_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The GPIO pin to use as the interrupt pin.
This pin is used to detect when the touchscreen has new data available.
If not set, the touchscreen will be polled instead of using interrupts.
- All other options from :ref:`Touchscreen <config-touchscreen>`.
See Also
--------
- :apiref:`ft5x06/touchscreen/ft5x06_touchscreen.h`
- :ghedit:`Edit`