100's of compile Errors

I am trying to get the Lesson 3 demo to run for the 7" Advance HMI display.
I have copied across all the libraries, set the correct board type & settings, copied across the ESP32S3_120M file etc etc.
But I just get loads of compile errors, a few examples below:-

C:\Users\paul\OneDrive\Electronics\01 - Sketches\03 - CrowPanel\BigInch_LVGL\ui_Screen1.c: In function 'ui_Screen1_screen_init':
C:\Users\paul\OneDrive\Electronics\01 - Sketches\03 - CrowPanel\BigInch_LVGL\ui_Screen1.c:33:44: error: 'lv_font_montserrat_40' undeclared (first use in this function); did you mean 'lv_font_montserrat_14'?
33 | lv_obj_set_style_text_font(ui_Label1, &lv_font_montserrat_40, LV_PART_MAIN | LV_STATE_DEFAULT);
| ^~~~~
| lv_font_montserrat_14
C:\Users\paul\OneDrive\Electronics\01 - Sketches\03 - CrowPanel\BigInch_LVGL\ui_Screen1.c:33:44: note: each undeclared identifier is reported only once for each function it appears in
In file included from C:\Users\paul\OneDrive\Electronics\01 - Sketches\03 - CrowPanel\BigInch_LVGL\BigInch_LVGL.ino:10:
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:75:25: error: expected identifier before numeric constant
75 | #define SSD1306_INVERSE 2 ///< Invert pixels
| ^
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:70:17: note: in expansion of macro 'SSD1306_INVERSE'
70 | #define INVERSE SSD1306_INVERSE ///< Invert pixels
| ^~~~~~~
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\TCA9534/TCA9534.h:22:41: note: in expansion of macro 'INVERSE'
22 | enum class Polarity { ORIGINAL, INVERSE };
| ^~~
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:75:25: error: expected '}' before numeric constant
75 | #define SSD1306_INVERSE 2 ///< Invert pixels
| ^
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:70:17: note: in expansion of macro 'SSD1306_INVERSE'
70 | #define INVERSE SSD1306_INVERSE ///< Invert pixels
| ^~~~~~~
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\TCA9534/TCA9534.h:22:41: note: in expansion of macro 'INVERSE'
22 | enum class Polarity { ORIGINAL, INVERSE };
| ^~~
In file included from C:\Users\paul\OneDrive\Electronics\01 - Sketches\03 - CrowPanel\BigInch_LVGL\BigInch_LVGL.ino:16:
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\TCA9534/TCA9534.h:22:29: note: to match this '{'
22 | enum class Polarity { ORIGINAL, INVERSE };
| ^
c:\Users\paul\OneDrive\Electronics\01 - Sketches\01 - Projects\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:75:25: error: expected unqualified-id before numeric constant
75 | #define SSD1306_INVERSE 2 ///< Invert pixels__

Comments

  • edited February 12

    Hello ,
    The error message indicates that font 40 is being used—this is a font you defined, right? You need to enable this font setting in the lvgl_conf.h file.

    Additionally, did the elecrow code successfully compile?

  • This is not my code, it is the demonstration code which I downloaded from Elecrow's tutorial video links. Biginch_LVGL.

Sign In or Register to comment.