feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Add support ST77916 RGB QSPI display

Open xiasi0 opened this issue 1 year ago • 11 comments

Schematic diagram jc3636w518.zip

xiasi0 avatar Jul 13 '24 11:07 xiasi0

I added support for this display to my bb_spi_lcd library. What functions does ESPHome need from the display library? Just pushing pixels? text? boxes?

bitbank2 avatar Jul 18 '24 22:07 bitbank2

I added support for this display to my bb_spi_lcd library. What functions does ESPHome need from the display library? Just pushing pixels? text? boxes?

[4848S040](https://community.home-assistant.io/t/guition-4-480x480-esp32-s3-4848s040-smart-display-with-lvgl/729271) This is equipment from the same brand Quad SPI AMOLED Displays ESPHome should need to initialize this display. ESPHome currently only supports qspi-amoled. qspi-lcd is not yet supported.

xiasi0 avatar Jul 19 '24 11:07 xiasi0

QSPI amoled and QSPI LCD are identical interfaces. The only difference will be the initialization sequence. I support both types in my bb_spi_lcd library.

bitbank2 avatar Jul 19 '24 13:07 bitbank2

QSPI amoled and QSPI LCD are identical interfaces. The only difference will be the initialization sequence. I support both types in my bb_spi_lcd library.

Yes, currently ESPHome can initialize two display models, RM67162 or RM690B0。 I don't know how to reference your display library in ESPHome. Hope you can provide tips and assistance

xiasi0 avatar Jul 20 '24 07:07 xiasi0

QSPI amoled and QSPI LCD are identical interfaces. The only difference will be the initialization sequence. I support both types in my bb_spi_lcd library.

display:
  - platform: qspi_amoled
    model: RM690B0
    data_rate: 80MHz
    spi_mode: mode0
    dimensions:
      width: 360
      height: 360
      offset_width: 16
    color_order: rgb
    invert_colors: false
    brightness: 255
    cs_pin: 10
    reset_pin: 47
    update_interval: never
    auto_clear_enabled: false
    id: my_display

I referenced the wrong display model, resulting in a complete display error

xiasi0 avatar Jul 20 '24 07:07 xiasi0

I don't use ESPHome and don't have spare time to work on it. I mentioned my code because it's an Arduino library that supports a ton of LCD displays in a much simpler way compared to libraries like TFT_eSPI. If there is funding available for this effort, I can provide more assistance.

bitbank2 avatar Jul 20 '24 08:07 bitbank2

I'm making a simpler version of my library for LVGL and ESP-IDF. Perhaps that will be easier to adapt to ESPHome? Here's my AnimatedGIF library + my bb_spi_lcd driving the JC3636W518:

https://youtube.com/shorts/D-XRrlbDBuU?feature=share

bitbank2 avatar Jul 21 '24 15:07 bitbank2

I'm making a simpler version of my library for LVGL and ESP-IDF. Perhaps that will be easier to adapt to ESPHome? Here's my AnimatedGIF library + my bb_spi_lcd driving the JC3636W518:

https://youtube.com/shorts/D-XRrlbDBuU?feature=share

ESPHome will be even better thanks to your contribution. Thank you

xiasi0 avatar Jul 21 '24 15:07 xiasi0

It does look like the current driver supports quad SPI

https://esphome.io/components/spi.html

Now we just need ST77916 support

agillis avatar Jul 23 '24 21:07 agillis

It does look like the current driver supports quad SPI

https://esphome.io/components/spi.html

Now we just need ST77916 support

Yes, looking forward to support

xiasi0 avatar Jul 24 '24 10:07 xiasi0

come here to share your opinions

@agillis @bitbank2 @xiasi0 @glmnet @fabaff

https://github.com/Bodmer/TFT_eSPI/discussions/3477#discussioncomment-10739750

5orwt9 avatar Sep 24 '24 14:09 5orwt9

Should be easy enough to support now with the qspi_dbi driver and a custom init sequence. Not released yet, but available in the dev branch. Docs here:

https://deploy-preview-4335--esphome.netlify.app/components/display/qspi_dbi.html

clydebarrow avatar Oct 30 '24 11:10 clydebarrow

config here:

https://github.com/clowrey/esphome-guition-360x360-jc3636w518/blob/main/guition-360x360-jc3636w518-lvgl.yaml

clydebarrow avatar Oct 30 '24 11:10 clydebarrow