-**id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
-**interrupt_pin** (**Required**, :ref:`Pin Schema <config-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 :ref:`Touchscreen <config-touchscreen>`.
Binary Sensor
-------------
In addition to touch areas on the screen configured through the :ref:`Touchscreen <config-touchscreen>` component,
the gt911 supports up to four buttons located outside of the normal touchscreen area.
On the ESP32-S3-BOX-3 the red circle below the display is such a button.
A binary sensor can be configured to react to touching these buttons.
..code-block:: yaml
# Example configuration entry
binary_sensor:
- platform: gt911
name: "Home"
index: 0
Configuration variables:
************************
-**gt911_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the touchscreen.
-**index** (*Optional*, int): Internal index of the touch button, between 0 and 3. The default is 0.
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.