Sorry to come a bit late to this party. I recently got the same model from Sunton Store to become a bit of a smart home remote control. After unpacking the preinstalled widget demo showed fine. Then I ported the widget demo project from being an Arduino .ino file to platform.io . According to @kisvegabor descriptions in LVGL I changed the somewhat older lines of gfx initialisation to:
// option 1:
// Uncomment for ILI6485 LCD 480x272
Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
40 /* DE */, 41 /* VSYNC */, 39 /* HSYNC */, 42 /* PCLK */,
45 /* R0 */, 48 /* R1 */, 47 /* R2 */, 21 /* R3 */, 14 /* R4 */,
5 /* G0 */, 6 /* G1 */, 7 /* G2 */, 15 /* G3 */, 16 /* G4 */, 4 /* G5 */,
8 /* B0 */, 3 /* B1 */, 46 /* B2 */, 9 /* B3 */, 1 /* B4 */,
0 /* hsync_polarity */, 8 /* hsync_front_porch */, 4 /* hsync_pulse_width */, 43 /* hsync_back_porch */,
0 /* vsync_polarity */, 8 /* vsync_front_porch */, 4 /* vsync_pulse_width */, 12 /* vsync_back_porch */,
1 /* pclk_active_neg */, 9000000 /* prefer_speed */);
Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
480 /* width */, 272 /* height */, rgbpanel);
After that I had a working project with flickering. So I simply disabled the first row of inputs disabling DE by setting it to 0
. No idea what DE does.
- 40 /* DE */, 41 /* VSYNC */, 39 /* HSYNC */, 42 /* PCLK */,
+ 0 /* DE */, 41 /* VSYNC */, 39 /* HSYNC */, 42 /* PCLK */,
What shall I say, no more flickering.