ESP32S3 5 Inch Display - Getting started help

edited August 2023 in Elecrow HMI Display

Hi all, I recently purchased this DIS07050H which can be found here:


I have set up all the libraries and can upload to the device, however I can not get the Arduino_GFX Hello World example that is found here to work:

https://github.com/moononournation/Arduino_GFX/tree/master/examples/HelloWorld

Has anyone got this going who could post a working Hello World Arduino GFX Library example with the correct parameters for this dev kit ?

I think I need the correct settings for these two settings at minimum:

//#define GFX_BL DF_GFX_BL // default backlight pin, you may replace DF_GFX_BL to actual backlight pin
#define GFX_BL 2


/* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */
#if defined(DISPLAY_DEV_KIT)
Arduino_GFX *gfx = create_default_Arduino_GFX();
#else /* !defined(DISPLAY_DEV_KIT) */


/* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */
Arduino_DataBus *bus = create_default_Arduino_DataBus();



/* More display class: https://github.com/moononournation/Arduino_GFX/wiki/Display-Class */
Arduino_GFX *gfx = new Arduino_ILI9341(bus, DF_GFX_RST, 0 /* rotation */, false /* IPS */);

Comments

  • edited August 2023

    These are the settings you need to make the 5" screen work with the latest Arduino GFX library:

    Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
        40 /* DE */, 41 /* VSYNC */, 39 /* HSYNC */, 0 /* 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 */, 1 /* hsync_pulse_width */, 32 /* hsync_back_porch */,
        0 /* vsync_polarity */, 8 /* vsync_front_porch */, 1 /* vsync_pulse_width */, 8 /* vsync_back_porch */,
        1 /* pclk_active_neg */, 16000000 /* prefer_speed */);
    Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
        800 /* width */, 480 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */);
    

    They are included in the library's PDQgraphicstest example sketch and I have tested them on my 5" screen.

    If you wanted to use LovyanGFX, which also includes touch support (no need for a separate touch library), you can use the settings I just posted here.

  • edited August 2023

    Hi Ben, thanks for the reply, all working thankyou.

Sign In or Register to comment.