sonyhome/SerialMenu

Cant run in Visual Studio Code

Opened this issue · 1 comments

image

and

image

and

image

and

image

I dont understand why i get this error. In the Arduino IDE there is no problem but in Visual Studio Code cant compile the code...

Thank you very much

MNS26 commented

i found fix for it

#if ARDUINO_ARCH_RP2040
#ifndef _MBED_WRAP_H_
#include <mbed.h>
#endif
#else
#ifndef Arduino_h
#include <Arduino.h>
#endif
#endif

im using it with the RP2040 (reason for mbed) but all i had to do is reinclude the arduino/mbed .h file in the cpp file
image