Waveshare ESP32-S3-LCD-1.85

I’m venturing into using a display in ESPHome for the first time, but I’m having no luck. Any pointers are appreciated.

I am using this device:

I’ve tried using similar code as shared in this thread, since they share similar screens: GUITION 1.8” 360x360 ESP32-S3-JC3636W518 Smart Display

I did change out the pin definitions (except for the EXIO reset pin, which I’m not sure how to reference), and used the init sequence I found in the sample code (in esp_lcd_st77916.c).

My current yaml:

If I comment out the lvgl section and flash, the device is available and I can toggle the switch for the backlight, but with the backlight on the screen is just “snow” (I’m not sure if that’s normal). However, if I flash with the lvgl section the screen remains black and the device does not come online.

Any suggestions for what I’m missing?

The LCD reset pin is on an expander so you need to add a component for that - pca9554 I think. Then specify the pin as per the expander docs.

Thanks! That helps a bit, but alas I still get the same results.

I updated the gist, but the new bits I added:

i2c:
  sda: GPIO11
  scl: GPIO10
  scan: true

pca9554:
  - id: 'pca9554a_device'

...
    reset_pin: 
      pca9554: pca9554a_device
      number: 2

Pin 1, not pin 2. They are 0-based in the config.