I stumbled upon this repository and was absolutely delighted to see the VIEWE 7-inch 800x480 dev board paired with ESP-IDF:
I immediately purchased this development board – specifically because of its excellent software integration.
By the way, @kisvegabor , @fbiego ultra thanks for sharing this fantastic code.
I once wrote a repository under PlatformIO that was indeed able to run LVGL on the SUNTON 7-inch ESP32 board, but unfortunately, in that configuration, I had to lower the pixel clock to 12.5 MHz to prevent constant screen tearing.
Because of this, I wasn’t happy that I had to slow down the rendering in my program by throttling back the pixel clock, and I kept searching for something like a golden rule.
I own a lot of similar development boards, and since I really like the SUNTON 7-inch board (ESP32-8048S070), I started looking at it very closely and comparing it with the ESP32-S3 VIEWE 7-inch development board (UEDX80480070ESP32).
After a while, I started coming to the conclusion that if these two boards are not twins, they are very similar and are practically made of the exact same components:
- They share the same resolution of 800x480 pixels
- They use the same display driver (EK9716BD3+EK73002AB2)
- They use the same touch controller (GT911)
One only needs to look at the module’s specification to find out that the corporation behind the brand sold by the SUNTON store is Shenzhen Jingcai Intelligent Co., Ltd. – which gives grounds for optimism when seeing newer versions of their products, this time under the GUITION brand, with their model names starting with JC (likely short for Jingcai).
For example, the board designation is JC8012P4A1, which breaks down to mean that the screen has a resolution of 800x1280, it features the ESP32-P4 chip, and the display size is 10.1 inches.
In the specification of the second display (UEDX80480070ESP32 VIEWE 7-inch ESP32-S3), the company behind it is revealed to be Shenzhen VIEWE Technology Co., Ltd.
By comparing the schematics of both boards, I tracked down the differences in their pinouts. I found the definitions for the VIEWE board right away in the main.c file of the repository for this dev board – brilliant – it honestly couldn’t be any easier! =)
esp_lcd_rgb_panel_config_t panel_conf = { .clk_src = LCD_CLK_SRC_DEFAULT, .psram_trans_align = 64, .data_width = 16, .bits_per_pixel = 16, .de_gpio_num = EXAMPLE_LCD_GPIO_DE, .pclk_gpio_num = EXAMPLE_LCD_GPIO_PCLK, .vsync_gpio_num = EXAMPLE_LCD_GPIO_VSYNC, .hsync_gpio_num = EXAMPLE_LCD_GPIO_HSYNC, .disp_gpio_num = EXAMPLE_LCD_GPIO_DISP, .data_gpio_nums = { EXAMPLE_LCD_GPIO_DATA0, EXAMPLE_LCD_GPIO_DATA1, EXAMPLE_LCD_GPIO_DATA2, EXAMPLE_LCD_GPIO_DATA3, EXAMPLE_LCD_GPIO_DATA4, EXAMPLE_LCD_GPIO_DATA5, EXAMPLE_LCD_GPIO_DATA6, EXAMPLE_LCD_GPIO_DATA7, EXAMPLE_LCD_GPIO_DATA8, EXAMPLE_LCD_GPIO_DATA9, EXAMPLE_LCD_GPIO_DATA10, EXAMPLE_LCD_GPIO_DATA11, EXAMPLE_LCD_GPIO_DATA12, EXAMPLE_LCD_GPIO_DATA13, EXAMPLE_LCD_GPIO_DATA14, EXAMPLE_LCD_GPIO_DATA15, }, .timings = { .h_res = EXAMPLE_LCD_H_RES, .v_res = EXAMPLE_LCD_V_RES, .pclk_hz = 15 * 1000 * 1000, .hsync_back_porch = 40, .hsync_front_porch = 88, .hsync_pulse_width = 48, .vsync_back_porch = 26, .vsync_front_porch = 30, .vsync_pulse_width = 6, .flags.pclk_active_neg = true, // RGB data is clocked out on falling edge },
Therefore, I had to modify the pin definitions, as far as I remember (anyone interested can check this in the main file):
- Different I2C pins
- A different backlight pin
- DE and VSYNC pins are swapped with each other
- And a different pinout configuration chosen for RGB565
// 🔵 BLUE CHANNEL (Sunton B0 - B4)
#define EXAMPLE_LCD_GPIO_DATA0 (GPIO_NUM_15) // B0 (lowest)
#define EXAMPLE_LCD_GPIO_DATA1 (GPIO_NUM_7) // B1
#define EXAMPLE_LCD_GPIO_DATA2 (GPIO_NUM_6) // B2
#define EXAMPLE_LCD_GPIO_DATA3 (GPIO_NUM_5) // B3
#define EXAMPLE_LCD_GPIO_DATA4 (GPIO_NUM_4) // B4 (highest)
// 🟢 GREEN CHANNEL (Sunton G0 - G5)
#define EXAMPLE_LCD_GPIO_DATA5 (GPIO_NUM_9) // G0 (lowest)
#define EXAMPLE_LCD_GPIO_DATA6 (GPIO_NUM_46) // G1
#define EXAMPLE_LCD_GPIO_DATA7 (GPIO_NUM_3) // G2
#define EXAMPLE_LCD_GPIO_DATA8 (GPIO_NUM_8) // G3
#define EXAMPLE_LCD_GPIO_DATA9 (GPIO_NUM_16) // G4
#define EXAMPLE_LCD_GPIO_DATA10 (GPIO_NUM_1) // G5 (highest)
// 🔴 RED CHANNEL (Sunton R0 - R4)
#define EXAMPLE_LCD_GPIO_DATA11 (GPIO_NUM_14) // R0 (lowest)
#define EXAMPLE_LCD_GPIO_DATA12 (GPIO_NUM_21) // R1
#define EXAMPLE_LCD_GPIO_DATA13 (GPIO_NUM_47) // R2
#define EXAMPLE_LCD_GPIO_DATA14 (GPIO_NUM_48) // R3
#define EXAMPLE_LCD_GPIO_DATA15 (GPIO_NUM_45) // R4 (highest)
#define GPIO_LCD_BL (GPIO_NUM_2)
I must mention that during this project, a major overhaul took place, because the LVGL setting:
#if LVGL_VERSION_MAJOR >= 9
.color_format = LV_COLOR_FORMAT_RGB565_SWAPPED,
#endif
crashed the CPU. This initially led me to open an issue with LVGL, before I realized that it wasn’t an LVGL bug, but rather an issue with the IDF component itself.
Initially, I bypassed the issue simply by defining the RGB pins in the LV_COLOR_FORMAT_RGB565_SWAPPED format and leaving the LVGL setting as LV_COLOR_FORMAT_RGB565, which worked flawlessly.
So when things went wrong, it was a total domino effect. Below is the forced dependency list, and by the way, I would like to draw your attention to the exact match equal signs (=) next to the libraries, as there is absolutely no guarantee that later versions will be backward compatible (as has just been proven here).
That’s why I preferred to specify that I want these exact versions, so that if anyone downloads this in a year or a few years, they can be sure it will compile without errors or warnings telling them, for example, that a structure has changed and they need to adapt their code – WHY BOTHER IF IT WORKS PERFECTLY RIGHT NOW?
IDF Component Manager Manifest File
dependencies:
espressif/button: "==3.5.0"
espressif/esp_lvgl_port: "==2.9.0"
espressif/esp_lcd_touch: "==1.2.1" # <-- Wymuszamy nowszą wersję z rejestru
espressif/esp_lcd_touch_gt911: "==1.2.1"
lvgl/lvgl: "==9.5.0" # <-- Ten Twój jawny zapis ma pierwszeństwo i zablokuje wersję na amen!
Required IDF version
idf:
version: ">=5.5.3"
And honestly, I should have stuck with that, because when I started implementing the solution proposed by Espressif, it led to a cascade of failed compiles from scratch and endless fixes. I had to replace the “esp_lvgl_port” component, which in turn required swapping out the touch component, and that forced me to re-declare the GT911 driver from scratch since it was no longer visible in its old location.
And now, under ESP-IDF, the LCD pixel clock is set to 15MHz, and it runs like a charm—smooth as silk, without a single hiccup!
Finally, I must point out that I am neither a C/C++ master nor an expert in environments, compilers, or linkers – their error messages often leave me with a massive headache rather than actually helping me out. In fact, this was practically my very first time programming in ESP-IDF.
I would also like to note that there are more nearly identical kits on the market that could be ported to this example, such as the CrowPanel 7-inch.
The entire program, as well as translating the compiler’s tantrums into plain English (deciphering “What hurts the compiler?” or “Why did the linker die?”), was created with the significant and invaluable assistance of AI, which I honestly and openly admit.
In closing, a big thanks once again to @fbiego and @kisvegabor for sharing this wonderful repository.


