Can you open a new terminal and execute pio run -v in it for verbose compilation? Also just to be sure you imported this subfolder as the PlatformIO project, right?
Running the command in terminal gives this at the end of the compile:
In file included from lib\ArduinoMenu library_ID1468\src/menuIO/encoderIn.h:18:0,
from src\panobot.cpp:36:
lib\PCINT r-site.net_ID1503\src/pcint.h:96:14: warning: ‘void PCint(uint8_t)’ declared ‘static’ but never defined [-Wunused-function]
static void PCint(uint8_t port);
^
*** [.pioenvs\megaatmega2560\src\panobot.cpp.o] Error 1
When you execute it in the shell you can select all -> copy then paste. I’ve just downloaded the repo myself and see that the error is
from src\panobot.cpp:36:
lib\PCINT r-site.net_ID1503\src/pcint.h: At global scope:
lib\PCINT r-site.net_ID1503\src/pcint.h:55:128: error: narrowing conversion of '-1' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
const uint8_t pcintPinMap[3][8] PROGMEM={{53,52,51,50,10,11,12,13},{0,15,14,-1,-1,-1,-1,-1},{A8,A9,A10,A11,A12,A13,A14,A15}};
^
lib\PCINT r-site.net_ID1503\src/pcint.h:55:128: error: narrowing conversion of '-1' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
lib\PCINT r-site.net_ID1503\src/pcint.h:55:128: error: narrowing conversion of '-1' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
lib\PCINT r-site.net_ID1503\src/pcint.h:55:128: error: narrowing conversion of '-1' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
lib\PCINT r-site.net_ID1503\src/pcint.h:55:128: error: narrowing conversion of '-1' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
I.e. someone put a -1 in an array of unsigned 8-bit integers… I’ll see what fix makes sense, probably should be 255.
Okay, go into the lib\PCINT r-site.net_ID1503\src folder. In the CPP file, change if (p==-1) to if (p==0xff). In the .H file, change every occurrence of -1 in that array to 0xff. Now it compiles.