"Serial" is undefined identifier issue in Platformio with Nscreen32 board (from YeaCreate)

I’m having an issue on using the Arduino commands into this Nscreen32 board. When i try to use the Serial.begin or any Serial command the ide returns an error with “Serial is undefined.” I googled it for a while and the problem might be solved with adding “USBCON” command into c_cpp_properties.json file. I did it but no help.

However i tried to use tag parser to fix the error and there was something , the ide recognizes the command, leads the command to its header etc but the issue remains withing the compilation of the code. What am i missing? Any idea on how to fix this?

For the record, the solution:

1 Like