These examples shows the yaml code to get the ESP32-2432S028R display to work in ESPHome.
In order for the yaml to work you need to add the following settings in your secrets.yaml file:
- api_key
- ota_password
- wifi_ssid
- wifi_password
- ap_password
For some of the examples you need to copy font or image files to your ESPHome folder. Those examples contains the instructions in the yaml file itself.
Note
for this, the display component needs to be set up like the following (model ili9342, no rotation, inverted)
display:
- platform: ili9xxx
id: esp_display
model: ili9342
spi_id: tft
cs_pin: GPIO15
dc_pin: GPIO2
invert_display: true
This yaml displays the text Hello World centered in the display.
This yaml displays the ESPHome logo and the current date and time.
This yaml publishes the RGB LED on the back of the display to Home Assistant.
This yaml displays two rectangles acting as binary touch sensors inside of Home Assistant.
This yaml displays a graph of a Home Assistant temperature sensor.