sonyhome / SerialMenu

An Arduino library to easily create menus on the serial console.
MIT License
24 stars 12 forks source link

Cant run in Visual Studio Code #4

Open nancio opened 3 years ago

nancio commented 3 years ago

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 2 years ago

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