Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant run in Visual Studio Code #4

Open
nancio opened this issue Oct 27, 2021 · 1 comment
Open

Cant run in Visual Studio Code #4

nancio opened this issue Oct 27, 2021 · 1 comment

Comments

@nancio
Copy link

nancio commented Oct 27, 2021

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
Copy link

MNS26 commented Jul 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants