Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/components/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ Often known as "tag" or "card" readers within the community.
"GT911","components/touchscreen/gt911","esp32_s3_box_3.png",""
"Nextion Binary Sensor","components/binary_sensor/nextion","nextion.jpg",""
"TT21100","components/touchscreen/tt21100","esp32-s3-korvo-2-lcd.png",""
"ST7123","components/touchscreen/st7123","tab5.jpg",""
"LVGL widget","components/binary_sensor/lvgl","lvgl_c_bns.png",""
{{< /imgtable >}}

Expand Down
37 changes: 37 additions & 0 deletions content/components/touchscreen/st7123.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---

Check failure on line 1 in content/components/touchscreen/st7123.md

View workflow job for this annotation

GitHub Actions / Lint

File has invalid executable bit 100755. If running from a windows machine please see disabling executable bit in git.

Check failure on line 1 in content/components/touchscreen/st7123.md

View workflow job for this annotation

GitHub Actions / Lint

File has invalid executable bit 100755. If running from a windows machine please see disabling executable bit in git.
description: "Instructions for setting up st7123 touch screen controller with ESPHome"
title: "st7123 Touch Screen Controller"
params:
seo:
description: Instructions for setting up st7123 touch screen controller with ESPHome
image: tab5.jpg
---

The `st7123` touchscreen platform allows using the touch screen controllers based on the st7123 chip with ESPHome.
The [I²C](/components/i2c) is required to be set up in your configuration for this touchscreen to work.

This controller is used in the M5Stack Tab5 (newer version);

{{< img src="tab5.jpg" alt="Image" caption="st7123 touchscreen on M5Stack Tab5" width="50.0%" class="align-center" >}}

## Base Touchscreen Configuration

```yaml
# Example configuration entry
touchscreen:
platform: st7123
id: my_touchscreen
interrupt_pin: GPIOXX
```

### Configuration variables

- **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually set the ID of this touchscreen.
- **interrupt_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin.
- **reset_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The reset pin.

- All other options from [Touchscreen](/components/touchscreen#config-touchscreen).

## See Also

- {{< apiref "st7123/touchscreen/st7123.h" "st7123/touchscreen/st7123.h" >}}
Loading