ESP32 HMI Compile error: 'Arduino_ESP32RGBPanel' does not name a type...

edited December 2023 in ESP32 & Lora

ESP32 HMI 5'' compile error:

Solution:

Modify the following code:

into


➡️Back to FQAs⬅️

Comments

  • Could you please include a text version of this screenshot? It would be very easy to make a mistake when copying this fuzzy image and typing it in by hand.

  • edited March 4

    Sorry for the inconvenience. Here's the text version:

    /* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */
    #if defined(DISPLAY_DEV_KIT)
    Arduino_GFX *lcd = create_default_Arduino_GFX();
    #else /* !defined(DISPLAY_DEV_KIT) */
    
    
    Arduino_ESP32RGBPanel *bus = 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 */, 210 /* hsync_front_porch */, 4 /* hsync_pulse_width */, 43 /* hsync_back_porch */,
      0 /* vsync_polarity */, 22 /* vsync_front_porch */, 4 /* vsync_pulse_width */, 12 /* vsync_back_porch */,
      1 /* pclk_active_neg */, 16000000 /* prefer_speed */
    
    
    );
    Arduino_RGB_Display *lcd = new Arduino_RGB_Display(
        800 /* width */,  480 /* height */, bus, 0 /* rotation*/,true /* auto_flush */
    );
    



  • this doesn't compile even with LVGL installed.

    HMI-5.ino:3:10: fatal error: demos/lv_demos.h: No such file or directory

     #include <demos/lv_demos.h>

             ^~~~~~~~~~~~~~~~~~

    compilation terminated.

  • edited January 12

    Hello @miracle ,

    You need to copy the lv_examples.h and lv_demos.h in the examples and demo foldersto the lvgl(or lvgl-3)/src directory

Sign In or Register to comment.