ST7789T3 ESP32 #3111
Replies: 14 comments 6 replies
-
Try using the CS line on a GPIO pin. The reason is that the ST7789 is easy to lock up with garbage commands during power up. Also run the Read_User_Setup sketch and check the output is correct, this shows whether the correct settings are being picked up. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. Adding the CS pin didn't make a difference (also connected to the ESP32). Here is my output:
|
Beta Was this translation helpful? Give feedback.
-
Any idea? |
Beta Was this translation helpful? Give feedback.
-
The Read_User_Setup output looks good. Check the connections are sound and correct. Check the supply voltage to the display is correct. Software options to try:
You also need to define the width and height to get the coordinate offsets correct, but that would not stop the display working. |
Beta Was this translation helpful? Give feedback.
-
I tried but the same result.
But i am not sure if that can work. The display is still black |
Beta Was this translation helpful? Give feedback.
-
My display looks really similar to this: https://www.buydisplay.com/1-83-inch-ips-tft-lcd-display-240x280-round-circle-screen-for-smart-watch I see here the specifications show it is a NV3030B IC. It is also 4 pin SPI |
Beta Was this translation helpful? Give feedback.
-
That display may look similar but that does not mean yours has that NV3030B controller. You have to assume the vendors information is correct. I made a mistake above, the option should read: -D TFT_SPI_MODE=SPI_MODE0 And delete the line: |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. Unfortunately i still cannot get anything on the display. It stays black Maybe a really stupid question, but i don't see any chip on the display itself. It is just the screen with the 13 pin connector. Am i not missing something? (The driver chip?) |
Beta Was this translation helpful? Give feedback.
-
Any idea? |
Beta Was this translation helpful? Give feedback.
-
No further ideas on the problem. I suggest you purchase a prebuilt board and get that running. That will help to identify the root cause (display/interface problem or library configuration issue. If you have access to an oscilloscope or logic analyser that may help debug the problem too. |
Beta Was this translation helpful? Give feedback.
-
Most likely this display is on the NV3030B controller. The controller is similar to ILI9341/GC9A01A but it seems that the initialization commands are different. I was able to get it working with ESP32 after using the code example from buydisplay. |
Beta Was this translation helpful? Give feedback.
-
@bbuster2 |
Beta Was this translation helpful? Give feedback.
-
{ NV3030B_MCU8_8080_CMD(0xfd);//private_access NV3030B_MCU8_8080_CMD(0x61);//add NV3030B_MCU8_8080_CMD(0x63);// NV3030B_MCU8_8080_CMD(0x64);// NV3030B_MCU8_8080_CMD(0xb1);//frame rate NV3030B_MCU8_8080_CMD(0xB4); NV3030B_MCU8_8080_CMD(0xB6); //GAMMA---------------------------------///////////// NV3030B_MCU8_8080_CMD(0xE5); NV3030B_MCU8_8080_CMD(0xE1); NV3030B_MCU8_8080_CMD(0xE4); NV3030B_MCU8_8080_CMD(0xE0); NV3030B_MCU8_8080_CMD(0xE3); //source NV3030B_MCU8_8080_CMD(0xE7); NV3030B_MCU8_8080_CMD(0xE8); //source NV3030B_MCU8_8080_CMD(0xF1); NV3030B_MCU8_8080_CMD(0xF6);// NV3030B_MCU8_8080_CMD(0xfd); NV3030B_MCU8_8080_CMD(0x3a); NV3030B_MCU8_8080_CMD(0x35); NV3030B_MCU8_8080_CMD(0x36);//bgr_[3] NV3030B_MCU8_8080_CMD(0x21); NV3030B_MCU8_8080_CMD(0x11); // exit sleep /====================================================/
} /SLEEP IN*****/ /SLEEP OUT*****/
} |
Beta Was this translation helpful? Give feedback.
-
void LCD_GPIO_Init(void)
} void LCD_Writ_Bus(u8 dat) void LCD_WR_DATA8(u8 dat) void LCD_WR_DATA(u16 dat) void LCD_WR_REG(u8 dat) void LCD_Address_Set(u16 x1,u16 y1,u16 x2,u16 y2)
} |
Beta Was this translation helpful? Give feedback.
-
I have bought a 1.83" ST7789T3 display but cannot get it working.
Display is bought here:
https://nl.aliexpress.com/item/1005005565821377.html?spm=a2g0o.order_list.order_list_main.11.205779d2rzxJEm&gatewayAdapt=glo2nld
Schematic:
In platformio, i use these biuld_flags:
The display stays "black". I can control the backlight but i cannot get text or an image on the display.
I have the reset pin high (but also tried low), and the CS port connected to ground.
Is this display incompatible with the ESP32 or am i doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions