Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

How to fix red squiggles under constants like D2 (upload works fine) #772

Closed
DanTup opened this issue Feb 8, 2019 · 3 comments
Closed
Assignees

Comments

@DanTup
Copy link

DanTup commented Feb 8, 2019

I've got everything working, except the constants for pins don't seem to be defined:

screenshot 2019-02-08 at 13 08 56

The upload works fine, and I have no issues in the standard Arduino IDE. I think these come from a file like:

https://github.com/esp8266/Arduino/blob/master/variants/d1/pins_arduino.h

Though ideally I'd like it to be based on the board I have selected automatically (since I switch between different boards).

@DanTup
Copy link
Author

DanTup commented Feb 8, 2019

I seem to have fixed it by changing includePath from:

"/Users/danny/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/**",

to:

"/Users/danny/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/variants/d1/**",

In the c_cpp_properties.json file. This doesn't seem ideal because I'd have to change it all the time - is there a way to tie these to the board selection?

@stale
Copy link

stale bot commented Apr 16, 2019

This issue has been automatically marked as stale and closed because it has not had recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions.

@adiazulay
Copy link
Contributor

IntelliSense auto-generation has been added in v0.4.0. If you're having any problems with IntelliSense please open a new issue.

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

Successfully merging a pull request may close this issue.

3 participants