Created
April 2, 2026 04:03
-
-
Save chuyskywalker/8b553fe84a64c381a4441ea342c73789 to your computer and use it in GitHub Desktop.
AITRIP ESP32-2432S028R ESPHome Config Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| esphome: | |
| name: cyd-test | |
| esp32: | |
| board: esp32dev | |
| framework: | |
| type: arduino | |
| logger: | |
| api: | |
| encryption: | |
| key: "YOUR_KEY_HERE" | |
| ota: | |
| - platform: esphome | |
| password: "YOUR_KEY_HERE" | |
| wifi: | |
| ssid: !secret wifi_ssid | |
| password: !secret wifi_password | |
| output: | |
| - platform: ledc | |
| pin: GPIO21 | |
| id: backlight_pwm | |
| light: | |
| - platform: monochromatic | |
| output: backlight_pwm | |
| name: Display Backlight | |
| id: backlight | |
| restore_mode: ALWAYS_ON | |
| spi: | |
| - id: tft | |
| clk_pin: GPIO14 | |
| mosi_pin: GPIO13 | |
| ## apparently not required and allows for faster refresh... | |
| # miso_pin: | |
| # number: GPIO12 | |
| # ignore_strapping_warning: true | |
| - id: touch | |
| clk_pin: GPIO25 | |
| mosi_pin: GPIO32 | |
| miso_pin: GPIO39 | |
| display: | |
| - platform: mipi_spi | |
| model: st7789v | |
| spi_id: tft | |
| dc_pin: GPIO2 | |
| cs_pin: GPIO15 | |
| invert_colors: false | |
| color_order: bgr | |
| # lvgl managed refresh | |
| auto_clear_enabled: false | |
| update_interval: never | |
| # did NOT require setting an 8bit palette | |
| touchscreen: | |
| platform: xpt2046 | |
| id: my_touchscreen | |
| spi_id: touch | |
| cs_pin: GPIO33 | |
| interrupt_pin: GPIO36 | |
| calibration: | |
| # you'll have to run your own calibration, but these likely get you close! | |
| x_min: 227 | |
| x_max: 3756 | |
| y_min: 200 | |
| y_max: 3817 | |
| transform: | |
| mirror_x: true | |
| mirror_y: false | |
| swap_xy: false | |
| on_touch: | |
| - lambda: |- | |
| ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%d", | |
| touch.x, | |
| touch.y, | |
| touch.x_raw, | |
| touch.y_raw | |
| ); | |
| lvgl: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment