Hello everyone, I bought a ST7796 TFT LCD (no touch) on AliExpress because I wanted to use it for my project.
I tried and tried again to make it work with EspHome, but the best result I managed to get is the one you can see in the photo.
If I write the screen dimensions in the script (dimension: Weight480 - Height320) it does not enlarge the black screen you see in the photo, but it only gives me all the pixels of the screen (as you can see in the photo, excluding the black part of the display).
Lo script che utilizzo è questo:
As you can read, I used ST7735 as the display model because it is the only one that works. If I insert the ST7796 model, it only gives me the pixels and no black part with the writing. I also tried to use all the other models suggested by Esphome but none of them work.
Do you have any idea how I can get the entire screen and not just that small black portion?
I also attach another photo with the display PINOUTS
Hi Clyde, thanks for your reply…to write the esphome script for the display in question, I started from this very article you kindly pointed out to me, but I never managed to get it to work, except by entering ST7735 as the model, but only for that small portion of the screen you see in the picture.
In the various tests I had also inserted these lines in the script psram: mode: octal speed: 80MHz
but don’t worked. I will try again this evening and read the article more carefully, hopefully I will be able to do something right.
Thanks and ciao
Does your board have PSRAM? If it does is it an octal mode PSRAM? If one of those is not true then your psram config as written won’t help. The serial logs will contain information on what is failing.
Hi @Pietrogramma
I have just received a similar device (Integrated ESP32 C3 with touchscreen) and was having the same issue as you over the last weekend. Again a claimed " ST7789 240x280" that only worked with “model: ST7735” and only filled part of the display in default settings. Aliexpress title was “ESP32 C3 Watch MINI TV Buzzer 1.69 inch Round LCD TouchScreen Display ST7789 240x280”
I think this is what I have.
The key for me to be able to set the correct dimensions and offset and not have the device go into a boot-loop was to set color_palette: 8BIT which points to the memory issues identified by @clydebarrow.