ESPHome mipi_spi display configuration for CO5300

Hi,

I have a Waveshare ESP32C6 1.43 round display device that I am tying to configure. Based on the ESPHome documentation, I have configured the display with following configuration.

display:
  - platform: mipi_spi
    id: disp1
    model: CO5300
    reset_pin: 3
    cs_pin: 10
    bus_mode: quad
    dimensions:
      height: 466
      width: 466
    color_depth: 16
    buffer_size: 50%
    init_sequence:
    - [ 0xD0, 0x07, 0x42, 0x18]
    - delay 10ms
    - [ 0xD1, 0x00, 0x07, 0x10]

    lambda: |-
      // Draw a circle to match the round screen
      it.circle(233, 233, 230, id(my_blue_color));
      it.print(233, 233, id(my_font), TextAlign::CENTER, "C6 AMOLED");

I am still not getting a clean display. I am setting buffer size to 50% as this ESP32 variant does not support PSRAM.

Attaching an image for reference.

Entire configuration can be found here

Thanking you
Satish Rajanna

I see the same effect with the line in the centre and the green colour bar on the right. I’m using an ESP32-S3 with 8 MB of PSRAM.

I think there must be another root cause. Have you made any progress with this?

Regards,

Dirk

Not sure about the artifacts across, but the line on the right means the display dimensions need an offset - the viewable area doesn’t start at 0. Experiment with offset values (try x_offset of 2 to start with) and see what effect there is.

THX i solved the green lines by adding

offset_width: 6

The horizontal corrupted line could be removed by

buffer_size: 100%

My display has 8MB of PSRAM so it was possible to increase the buffer to 100%.

Would be interesting if there is another way to solve it.

Thanks for the hint!

Dirk

1 Like

If you have PSRAM there’s no issue with the large buffer, but in any case using LVGL will work much better on a hi-res display like that.

1 Like

Thanks to your help i got everything working.

I created a forum post explaining how to configure the display.

https://community.home-assistant.io/t/touch-knob-display-uedx46460015-md50esp32-1-5inch-example/982434?u=stb3

1 Like