Compilazione VScode per LCDMenuLib2

Ciao a tutti ragazzi,

ho un problema che mi attanaglia in relazione alla compilazione di un software di esempio per la libreria LCDMenuLib2.

Mi spiego meglio. Se compilo l'esempio con l'IDE di arduino, impostando il programma per lavorare con un telecomando infrarossi per la movimentazione all'interno del menu, tutto funziona correttamente.

Quando passo il codice in VScode mi vengono restituiti una serie di errori tutti relativi a LCDML e _LCDML.

[Starting] Verify sketch - ArduinoMenuFreeRtos.ino
[Warning] Output path is not specified. Unable to reuse previously compiled files. Verify could be slow. See README.
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/valerio/.arduino15
Sto caricando la configurazione...
Sto inizializzando i pacchetti...
Sto preparando le schede...
Sto verificando...
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_control.ino: In function 'void lcdml_menu_control()':
LCDML_control:407:6: error: 'LCDML' was not declared in this scope
   if(LCDML.BT_setup()) {
      ^~~~~
LCDML_control:420:28: error: 'LCDML' was not declared in this scope
           case 0xA05F6897: LCDML.BT_enter(); break;
                            ^~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_dynFunction.ino: In function 'void mDyn_para(uint8_t)':
LCDML_display_dynFunction:15:15: error: 'LCDML' was not declared in this scope
   if (line == LCDML.MENU_getCursorPos())
               ^~~~~
LCDML_display_dynFunction:76:16: error: '_LCDML_DISP_box_x0' was not declared in this scope
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                ^~~~~~~~~~~~~~~~~~
LCDML_display_dynFunction:76:35: error: '_LCDML_DISP_font_w' was not declared in this scope
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                                   ^~~~~~~~~~~~~~~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_dynFunction.ino:76:35: note: suggested alternative: 'LCDML_DISP_9_function'
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                                   ^~~~~~~~~~~~~~~~~~
                                   LCDML_DISP_9_function
LCDML_display_dynFunction:76:56: error: '_LCDML_DISP_cur_space_behind' was not declared in this scope
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_dynFunction.ino:76:56: note: suggested alternative: 'LCDML_DISP_22_function'
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                        LCDML_DISP_22_function
LCDML_display_dynFunction:76:88: error: '_LCDML_DISP_font_h' was not declared in this scope
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                                                                                        ^~~~~~~~~~~~~~~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_dynFunction.ino:76:88: note: suggested alternative: 'LCDML_DISP_9_function'
   u8g.drawStr( _LCDML_DISP_box_x0+_LCDML_DISP_font_w + _LCDML_DISP_cur_space_behind,  (_LCDML_DISP_font_h * (1+line)), buf);     // the value can be changed with left or right
                                                                                        ^~~~~~~~~~~~~~~~~~
                                                                                        LCDML_DISP_9_function
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_menu.ino: In function 'void lcdml_menu_display()':
LCDML_display_menu:19:15: error: '_LCDML_DISP_font' was not declared in this scope
   u8g.setFont(_LCDML_DISP_font);
               ^~~~~~~~~~~~~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_menu.ino:19:15: note: suggested alternative: 'LCDML_DISP_9_function'
   u8g.setFont(_LCDML_DISP_font);
               ^~~~~~~~~~~~~~~~
               LCDML_DISP_9_function
LCDML_display_menu:25:21: error: '_LCDML_DISP_cols' was not declared in this scope
   char content_text[_LCDML_DISP_cols];  // save the content text of every menu element
                     ^~~~~~~~~~~~~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_menu.ino:25:21: note: suggested alternative: 'LCDML_DISP_9_function'
   char content_text[_LCDML_DISP_cols];  // save the content text of every menu element
                     ^~~~~~~~~~~~~~~~
                     LCDML_DISP_9_function
LCDML_display_menu:27:3: error: 'LCDMenuLib2_menu' was not declared in this scope
   LCDMenuLib2_menu *tmp;
   ^~~~~~~~~~~~~~~~
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_menu.ino:27:3: note: suggested alternative: 'LCDMenuLib2_menu_h'
   LCDMenuLib2_menu *tmp;
   ^~~~~~~~~~~~~~~~
   LCDMenuLib2_menu_h
LCDML_display_menu:27:21: error: 'tmp' was not declared in this scope
   LCDMenuLib2_menu *tmp;
                     ^~~
LCDML_display_menu:29:15: error: 'LCDML' was not declared in this scope
   uint8_t i = LCDML.MENU_getScroll();
               ^~~~~
LCDML_display_menu:30:18: error: '_LCDML_DISP_rows' was not declared in this scope
   uint8_t maxi = _LCDML_DISP_rows + i;
                  ^~~~~~~~~~~~~~~~
LCDML_display_menu:73:30: error: 'content_text' was not declared in this scope
             LCDML_getContent(content_text, tmp->getID());
                              ^~~~~~~~~~~~
      ^~~~~
Più di una libreria trovata per "IRremote.h"
Usata: /home/valerio/Arduino/libraries/IRremote
Più di una libreria trovata per "LCDMenuLib2.h"
Usata: /home/valerio/Arduino/libraries/LCDMenuLib2
Più di una libreria trovata per "Arduino_FreeRTOS.h"
Usata: /home/valerio/Arduino/libraries/Arduino_FreeRTOS_Library-master
Più di una libreria trovata per "U8glib.h"
Usata: /home/valerio/Arduino/libraries/U8glib
exit status 1
[Error] Exit with code=1

econdo me sto sbagliando qualcosa nell'assegnazione dei puntatori alle librerie o addirittura del compilatore da dover usare. Il file in cui imposto il compilatore è il seguente:

{
    "configurations": [
        {
            "name": "Linux",
            "defines": [
                "ARDUINO=10800",
                "USBCON"
            ],
            "includePath": [
                "${workspaceFolder}/**",
                "/home/valerio/arduino-1.8.10/**",
                "/home/valerio/Arduino/libraries/**",
                "/home/valerio/arduino-1.8.10/hardware/arduino/avr/**",
                "/home/valerio/arduino-1.8.10/tools/**",
                "/home/valerio/.arduino15/packages/arduino/hardware/avr/1.8.2/**",
                "/home/valerio/.arduino15/packages/arduino/tools/**",
                "/home/valerio/Arduino/libraries/Arduino_FreeRTOS_Library-master/**",
                "/home/valerio/Arduino/libraries/LCDMenuLib2/src/**",
                "/home/valerio/Arduino/libraries/LCDMenuLib2/**"
            ],
            "forcedInclude": [
                "/opt/arduino-1.8.10/hardware/arduino/avr/cores/arduino/Arduino.h",
                "/home/valerio/.arduino15/packages/arduino/hardware/avr/1.8.2/cores/arduino/Arduino.h"
            ],
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "compilerPath": "~/arduino-1.8.10/hardware/tools/avr/lib/gcc",
            "browse": {
                "limitSymbolsToIncludedHeaders": false
            }
        }
    ],
    "version": 4
}

Qualcuno mi protrebbe aiutare a scoprire l'arcano?

Grazie infinite.