mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-31 18:17:53 +01:00
62 lines
1.6 KiB
ReStructuredText
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`
|