esphome-docs/components/touchscreen/ft63x6.rst
NP v/d Spek aeb867d4ab
Touchscreen update to explain the new features added (#3405)
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
2023-12-13 10:01:23 +11:00

62 lines
1.6 KiB
ReStructuredText

FT63X6 Touchscreen Controller
================================
.. seo::
:description: Instructions for setting up FT63X6 touchscreen controller with ESPHome
:image: wt32-sc01.png
:keywords: FT63X6, WT32-SC01
The ``ft63x6`` component allows using the touchscreen controller found in
`Seeed Studio's WT32-SC01 <https://www.seeedstudio.com/ESP32-Development-board-WT32-SC01-p-4735.html>`__
with ESPHome.
The :ref:`I²C <i2c>` is required to be set up in your configuration for this sensor to work.
.. code-block:: yaml
# Example configuration entry
esp32:
board: m5stack-core2
framework:
type: arduino
i2c:
sda: GPIO18
scl: GPIO19
scan: false
output:
- platform: ledc
pin: GPIO23
id: screen_led
light:
- platform: monochromatic
output: screen_led
default_transition_length: 0.2s
name: 'Backlight'
restore_mode: ALWAYS_ON
touchscreen:
- platform: ft63x6
interrupt_pin: GPIO39
on_touch:
- logger.log:
format: Touch %d at (%d, %d)
args: [touch.id, touch.x, touch.y]
Configuration variables:
------------------------
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
- **reset_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The reset pin of the controller.
- **interrupt_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
- All other options from :ref:`config-touchscreen`.
See Also
--------
- :doc:`Touchscreen <index>`
- :apiref:`ft63x6/ft63x6.h`
- :ghedit:`Edit`