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

identifier "Serial" is undefined #808

Closed
loongEgg opened this issue Apr 29, 2019 · 46 comments
Closed

identifier "Serial" is undefined #808

loongEgg opened this issue Apr 29, 2019 · 46 comments
Assignees

Comments

@loongEgg
Copy link

My VS Code have a problem:identifier "Serial" is undefined
but I upload program to my arduino nano OK.
this is my arduino file:

void setup(){
    pinMode(LED_BUILTIN, OUTPUT);
    Serial.begin(9600);
}

void loop(){
    digitalWrite(LED_BUILTIN, HIGH);
    Serial.println("hello arduino 2333333333333");
    delay(1000);
    digitalWrite(LED_BUILTIN, LOW);
    delay(1000);
}

this is arduino.json

{
    "board": "arduino:avr:nano",
    "configuration": "cpu=atmega328old",
    "programmer": "AVRISP mkII",
    "sketch": "serialPort.ino",
    "port": "COM9"
}

this is c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "C:\\\\Arduino\\\\tools\\\\**",
                "C:\\\\Arduino\\\\hardware\\\\arduino\\\\avr\\\\**",
                "C:\\\\Arduino\\\\hardware\\\\arduino\\\\avr\\\\cores\\\\arduino\\\\**",
                "C:\\\\Arduino\\\\hardware\\\\tools\\\\avr\\\\avr\\\\include\\\\avr\\\\**",
                "C:\\\\Arduino\\\\hardware\\\tools\\\\**", 
                "C:\\\\Arduino\\\\hardware\\\tools\\\\avr\\\\avr\\\\include\\\\**"
            ],
            "forcedInclude": [
                "C:\\\\Arduino\\\\hardware\\\\arduino\\\\avr\\\\cores\\\\arduino\\\\Arduino.h"
            ],
            "intelliSenseMode": "gcc-x64",
            "compilerPath": "C:/mingw64/bin/gcc.exe",
            "cStandard": "c11",
            "cppStandard": "c++17"
        }
    ],
    "version": 4
}
@dilin-MS
Copy link

dilin-MS commented May 5, 2019

Hi, could you please provide more information of your situation? Where does the message identifier "Serial" is undefined occur? Is it an intelliSense prompt message(like a red wavy line suggesting error) or an output message when you try to compile the code?
Since you say that you upload the code to arduino nano device and the code can work well, you mean that the code can compile smoothly without error and can work well. But the vscode intelliSense just gives out the undefined message. Did I misunderstand what you mean?

@alibas-eee
Copy link

i have same error like this.
i try to include hardwareserial but give errors when writing include files too
image

image

@gemul
Copy link

gemul commented May 7, 2019

I also have the same error.
image
commands like delay, pinMode, digitalWrite, digitalRead, etc. works fine with intellisense.
but when using Serial, it shows:
identifier "Serial" is undefined

trying to add #include<HardwareSerial.h> it gives me:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (F:\project\arduino\sketches\gto\app.ino).
image

and then after clicking on the lightbulb, then "add to includePath..." i get :
PCH warning: header stop cannot be in a linkage block. An IntelliSense PCH file was not generated.
image

and this is my c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "C:/Users/gemul/AppData/Local/Arduino15/packages/arduino/tools/**",
                "C:/Users/gemul/AppData/Local/Arduino15/packages/arduino/hardware/avr/1.6.23/**",
                "C:/Users/gemul/AppData/Local/Arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino"
            ],
            "forcedInclude": [
                "C:/Users/gemul/AppData/Local/Arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino/Arduino.h"
            ],
            "intelliSenseMode": "msvc-x64",
            "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe",
            "cStandard": "c11",
            "cppStandard": "c++17"
        }
    ],
    "version": 4
}

the line:
C:/Users/gemul/AppData/Local/Arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino
is added when i clicked on lightbulb then "add to includePath...".

By the way, using SoftwareSerial works fine.
image
it added
"C:/Users/gemul/AppData/Local/Arduino15/packages/arduino/hardware/avr/1.6.23/libraries/SoftwareSerial/src"
in includePath.

@gemul
Copy link

gemul commented May 8, 2019

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

@WilsonCazarre
Copy link

WilsonCazarre commented May 23, 2019

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

Thanks for this answer man, now my IntelliSense is working very well, code completion and the libraries :) (I leave the Intelli Sense engine on Default, cause code completion and syntax highlighting wasn't working for me in "Tag Parser" mode.
Here's my config files:

c_cpp_properties.json

    "configurations": [
        {
            "name": "Win32",
            
            
            "includePath": [
                "${workspaceRoot}",
                "C:\\\\Program Files (x86)\\\\Arduino\\\\hardware\\\\arduino\\\\avr\\\\**",
                "C:\\\\Program Files (x86)\\\\Arduino\\\\tools\\\\**",
                "C:\\\\Program Files (x86)\\\\Arduino\\\\hardware\\\\tools\\\\**",
                "C:\\\\Program Files (x86)\\\\Arduino\\\\libraries\\\\**",
                "C:\\\\Users\\\\WILSONCAZARRESOUSA\\\\Documents\\\\Arduino\\\\libraries\\\\**",
                "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\lib/gcc\\avr\\5.4.0\\include",
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino",
                "C:\\Program Files (x86)\\Arduino/hardware\\arduino\\avr\\variants\\standard",
                "C:\\Program Files (x86)\\Arduino"
                ],
            
            "forcedInclude": [
                "C:\\\\Program Files (x86)\\\\Arduino\\\\hardware\\\\arduino\\\\avr\\\\cores\\\\arduino\\\\Arduino.h"
            ],
            "browse": {"limitSymbolsToIncludedHeaders": true,
                "path": ["C:\\\\Program Files (x86)\\\\Arduino\\\\hardware\\\\arduino\\\\avr\\\\cores\\\\arduino\\\\Arduino.h"]},
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "defines": ["USBCON"]
            
        }
    ],
    "version": 4
}

settings.json

{
    "arduino.path": "C:\\Program Files (x86)\\Arduino",
    "arduino.commandPath": "arduino_debug.exe",
    "arduino.logLevel": "info",
    "arduino.enableUSBDetection": true,
    "arduino.disableTestingOpen": false,
    "arduino.skipHeaderProvider": false,
    "arduino.additionalUrls": [
        "https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json",
        "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
    ],
    "arduino.defaultBaudRate": 9600,
    "workbench.colorTheme": "Darcula",
    "C_Cpp.intelliSenseEngine": "Default",
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": false
    },
    "editor.suggestOnTriggerCharacters": true,
}

@ARHollisSr
Copy link

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

Extremely appreciative. Thank you.

@gregorthebigmac
Copy link

@gemul Dude, THANK YOU!!!!!! I spent entirely too long tracking this down, and finally someone solved it! I just confirmed this problem exists on Linux, as well, and your solution fixed it! Finally got my Linter back!!!!

@maludwig
Copy link

@dilin-MS this bug still persists in my version of the extension. The workaround described above fixes it, but should we Close this Issue before the bug itself is fixed?

@gregorthebigmac
Copy link

@dilin-MS this bug still persists in my version of the extension. The workaround described above fixes it, but should we Close this Issue before the bug itself is fixed?

Agreed. If it were my software, I wouldn't be closing the bug report unless we'd already fixed it, and were prepping to roll it out in the next update, and even then, I'd probably wait a few days until after the update gets pushed out to make sure we don't get any more complaints about it before calling it closed.

@ArthurMa1978 ArthurMa1978 reopened this Jun 14, 2019
@deandreamatias
Copy link

Hi people.
I have a similar problem with Serial2 and Serial3. They remain undefined. Any suggestions to fix this?

@fpistm
Copy link

fpistm commented Jun 26, 2019

I got the same issue.
My comprehension is that the vscode arduino extension is not able to get definition defined in the platform.txt/boards.txt. So they are not added to C/C++ properties automatically. So, they have to be manually added to the .vscode/c_cpp_properties.json

Example for this core for an STM32F1 based board (BluePillF103C8):
https://github.com/stm32duino/Arduino_Core_STM32

            "defines": [
                "ARDUINO=10809",
                "HAL_UART_MODULE_ENABLED",
                "STM32F1xx"
            ]

HAL_UART_MODULE_ENABLED is managed thanks the Arduino menu and is required to get Serial instance defined for C/C++ code browsing.
So, you have to find which define(s) is(are) required.

In the same way, the generated includePath in the .vscode/c_cpp_properties.json is generic and include all top level folders:

            "includePath": [
                "${workspaceRoot}",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\hardware\\\\stm32\\\\1.6.0\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\tools\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\hardware\\\\tools\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\libraries\\\\**",
                "C:\\\\Users\\\\fpistm\\\\Documents\\\\Arduino\\\\hardware\\\\tools\\\\**",
                "C:\\\\Users\\\\fpistm\\\\Documents\\\\Arduino\\\\libraries\\\\**"
            ],

But all headers should not be parsed and could depend of definitions/options,
In my case, some path are added to include path thanks the platform.txt

https://github.com/stm32duino/Arduino_Core_STM32/blob/1bd6ffaf8a594b7224c3789642aad9c29a174271/platform.txt#L12

compiler.stm.extra_include="-I{build.source.path}" "-I{build.core.path}/avr" "-I{build.core.path}/stm32" "-I{build.core.path}/stm32/LL" "-I{build.core.path}/stm32/usb" "-I{build.core.path}/stm32/usb/hid" "-I{build.core.path}/stm32/usb/cdc" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Inc/" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Src/" "-I{build.system.path}/{build.series}/" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Src"
Here, {build.series} is defined thanks the boards.txt depending of the board selected.
So, I have to update includePath property to get only the right include and avoid multiple definitions.

            "includePath": [
                "${workspaceRoot}",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\hardware\\\\stm32\\\\1.6.0\\\\cores\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\hardware\\\\stm32\\\\1.6.0\\\\system\\\\STM32F1xx\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\hardware\\\\stm32\\\\1.6.0\\\\system\\\\Drivers\\\\STM32F1xx_HAL_Driver\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\hardware\\\\stm32\\\\1.6.0\\\\system\\\\Drivers\\\\CMSIS\\\\Device\\\\ST\\\\STM32F1xx\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\hardware\\\\stm32\\\\1.6.0\\\\variants\\\\BLUEPILL_F103XX\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\portable\\\\packages\\\\STM32\\\\tools\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\hardware\\\\tools\\\\**",
                "c:\\\\STM32\\\\arduino\\\\arduino-1.8.9-windows\\\\arduino-1.8.9\\\\libraries\\\\**"
            ],

With those updates, there is no more error reported and code browsing is well performed else I've multiple definition.

Note that those errors only rely on code browsing, Arduino build is well performed with correct paths and definitions.

Hope this help and clear.

@iFreilicht
Copy link

It seems having this defined should also be part of #438

@ChrisMacaluso
Copy link

@gemul nice find, this was driving me crazy

@drummsb
Copy link

drummsb commented Sep 28, 2019

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

This is an amazing find and I now know how to use the define field in the c_cpp_properties.json file. Worked like a champ! I am greatful!

@sakshamsneh
Copy link

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

This is very helpful. I started Arduino coding in VSCode, and encountered this issue almost immediately. Thank you very much.

@Sallaa
Copy link

Sallaa commented Nov 6, 2019

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

Had a similar issue and this solved my problem too. Thank you @gemul.

@elektronikworkshop
Copy link
Contributor

Hi to everyone who is suffering from this!

I was so annoyed, that I began to work on an auto-configuration mechanism, which parses the build output from Arduino and creates a c_cpp_properties.json from it. The goal is that no one wants likely ever edit this file manually again - except for very weird setups for which I will add a configuration flag/option that will keep the extension from touching the file.

I coded some proof of concept already but I haven't committed anything yet. But I began documenting the project here.

Anyone who wants to keep me motivated can chip in some 🍺-money - the donation button can be found in the link above.

Other support is appreciated and comprises

  • people with Windows and OSX setups to test the cross platform compatibility
  • the original maintainers could help me with CI and how to build test-releases

The progress can be followed within the same file. The repo is set to this feature branch by default.

@nachogarmilla
Copy link

nachogarmilla commented Mar 22, 2020

Thank you for sharing. I had same issue.

As my conf file had a previous defines entry I just added a ne item to the matrix.

image

@helviorubens
Copy link

I had the same issue, so I tried the @gemul 's solution but didn't work for me. However, I've added #include <Arduino.h> and worked well.

@kopiro
Copy link

kopiro commented Apr 30, 2020

Should just #include<Arduino.h> be the solution?

@helviorubens
Copy link

@kopiro I keep doing this, so I restart the VS Code and it works without error messages.

@dhiyaaulauliyaa
Copy link

It seems i have solved my own issue. And here is what i have tried.

First, i can get rid of the intellisense errors by simply using tag parser instead of default for my cpp intellisense engine. by changing C_Cpp:Intelli Sense Engine in File>preference>settings to "Tag Parser".
That indeed get rid of the errors, and put intellisense autocompletion and suggestion to works again. But it get rid of error checking (which is very important for me).
So if you don't mind using tag parser, then go on.

Second, after googling for a while, i found out that in order for Serial to be able to works with intellisense, you need to add "defines": [ "USBCON" ] in your c_cpp_properties.json. And i did, and now the intellisense is working (i changed back the cpp intellisense engine to Default).
So you might try this one first, perhaps it will solve your problem. If not, use the tag parser one.
my c_cpp_properties.json. now looks like this:
image

this have solved my problem. thank you!

@thinkOfaNumber
Copy link

I found I needed more than just USBCON. When you compile your project, look for a line like this:

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "path\\to\\your\\sketch\\sketch.ino.cpp" -o nul

Look for the arguments that start with -D... Each one of those is a #define that is set by the arduino build process. In my above example they are -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR. Take these (remove the -D) and put then into your "defines" section, like this:

        "defines": [
            "USBCON",
            "F_CPU=8000000L",
            "ARDUINO=10812",
            "ARDUINO_AVR_PRO",
            "ARDUINO_ARCH_AVR"
        ]

@iFreilicht
Copy link

iFreilicht commented Sep 21, 2020

After using elektronikworkshop/vscode-arduino fork with the autogeneration feature, I can attest that this does indeed solve this problem perfectly.

@adiazulay
Copy link
Contributor

This is fixed in v0.3.4

@GF-Huang
Copy link

GF-Huang commented Feb 22, 2021

This is fixed in v0.3.4

Not fixed, v0.3.5 issue still.

image

image

image

After add ARDUINO, it makes uint8_t not work.

image

image

@iFreilicht
Copy link

This will be fixed, soon. If you want to test that, download the v0.4.0-rc2.vsix file, and install it in vscode by opening the file via "File" -> "Open File..." or running code from the terminal like code Downloads/vscode-arduino-0.4.0-rc2.vsix.

After this, the c_cpp_properties.json should be generated automatically, and the ARDUINO macro should be defined correctly.

Note that putting defines: [ "ARDUINO" ] is not guaranteed to always work! It should be defines: [ "ARDUINO=10812" ].

@GF-Huang
Copy link

"ARDUINO=10812" will still cause uint8_t not defined.

image

@iFreilicht
Copy link

@GF-Huang What board are you using?

@GF-Huang
Copy link

RF-NANO, but this does not effect compile and run, just a syntax error.

@iFreilicht
Copy link

This should be fixed in v0.4.0, so please try to download and install that as I described above :)

@GF-Huang
Copy link

GF-Huang commented Mar 9, 2021

v0.4.0-rc3 issue still.

image

.vscode\c_cpp_properties.json

{
    "version": 4,
    "configurations": [
        {
            "name": "Arduino",
            "compilerPath": "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-g++",
            "compilerArgs": [
                "-w",
                "-std=gnu++11",
                "-fpermissive",
                "-fno-exceptions",
                "-ffunction-sections",
                "-fdata-sections",
                "-fno-threadsafe-statics",
                "-Wno-error=narrowing"
            ],
            "intelliSenseMode": "gcc-x64",
            "includePath": [
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino",
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs",
                "D:\\Code\\Arduino\\libraries\\RF24",
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src",
                "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\7.3.0\\include",
                "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\7.3.0\\include-fixed",
                "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\avr\\include"
            ],
            "forcedInclude": [
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Arduino.h"
            ],
            "cStandard": "c11",
            "cppStandard": "c++11",
            "defines": [
                "F_CPU=16000000L",
                "ARDUINO=10813",
                "ARDUINO_AVR_NANO",
                "ARDUINO_ARCH_AVR",
                "__DBL_MIN_EXP__=(-125)",
                "__HQ_FBIT__=15",
                "__cpp_attributes=200809",
                "__UINT_LEAST16_MAX__=0xffffU",
                "__ATOMIC_ACQUIRE=2",
                "__SFRACT_IBIT__=0",
                "__FLT_MIN__=1.17549435e-38F",
                "__GCC_IEC_559_COMPLEX=0",
                "__BUILTIN_AVR_SLEEP=1",
                "__BUILTIN_AVR_COUNTLSULLK=1",
                "__cpp_aggregate_nsdmi=201304",
                "__BUILTIN_AVR_COUNTLSULLR=1",
                "__UFRACT_MAX__=0XFFFFP-16UR",
                "__UINT_LEAST8_TYPE__=unsigned char",
                "__DQ_FBIT__=63",
                "__INTMAX_C(c)=c ## LL",
                "__ULFRACT_FBIT__=32",
                "__SACCUM_EPSILON__=0x1P-7HK",
                "__CHAR_BIT__=8",
                "__USQ_IBIT__=0",
                "__UINT8_MAX__=0xff",
                "__ACCUM_FBIT__=15",
                "__WINT_MAX__=0x7fff",
                "__FLT32_MIN_EXP__=(-125)",
                "__cpp_static_assert=200410",
                "__USFRACT_FBIT__=8",
                "__ORDER_LITTLE_ENDIAN__=1234",
                "__SIZE_MAX__=0xffffU",
                "__WCHAR_MAX__=0x7fff",
                "__LACCUM_IBIT__=32",
                "__DBL_DENORM_MIN__=double(1.40129846e-45L)",
                "__GCC_ATOMIC_CHAR_LOCK_FREE=1",
                "__GCC_IEC_559=0",
                "__FLT_EVAL_METHOD__=0",
                "__BUILTIN_AVR_LLKBITS=1",
                "__cpp_binary_literals=201304",
                "__LLACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-47LLK",
                "__GCC_ATOMIC_CHAR32_T_LOCK_FREE=1",
                "__BUILTIN_AVR_HKBITS=1",
                "__BUILTIN_AVR_BITSLLK=1",
                "__FRACT_FBIT__=15",
                "__BUILTIN_AVR_BITSLLR=1",
                "__cpp_variadic_templates=200704",
                "__UINT_FAST64_MAX__=0xffffffffffffffffULL",
                "__SIG_ATOMIC_TYPE__=char",
                "__BUILTIN_AVR_UHKBITS=1",
                "__UACCUM_FBIT__=16",
                "__DBL_MIN_10_EXP__=(-37)",
                "__FINITE_MATH_ONLY__=0",
                "__cpp_variable_templates=201304",
                "__LFRACT_IBIT__=0",
                "__GNUC_PATCHLEVEL__=0",
                "__FLT32_HAS_DENORM__=1",
                "__LFRACT_MAX__=0X7FFFFFFFP-31LR",
                "__UINT_FAST8_MAX__=0xff",
                "__has_include(STR)=__has_include__(STR)",
                "__DEC64_MAX_EXP__=385",
                "__INT8_C(c)=c",
                "__INT_LEAST8_WIDTH__=8",
                "__UINT_LEAST64_MAX__=0xffffffffffffffffULL",
                "__SA_FBIT__=15",
                "__SHRT_MAX__=0x7fff",
                "__LDBL_MAX__=3.40282347e+38L",
                "__FRACT_MAX__=0X7FFFP-15R",
                "__UFRACT_FBIT__=16",
                "__UFRACT_MIN__=0.0UR",
                "__UINT_LEAST8_MAX__=0xff",
                "__GCC_ATOMIC_BOOL_LOCK_FREE=1",
                "__UINTMAX_TYPE__=long long unsigned int",
                "__LLFRACT_EPSILON__=0x1P-63LLR",
                "__BUILTIN_AVR_DELAY_CYCLES=1",
                "__DEC32_EPSILON__=1E-6DF",
                "__FLT_EVAL_METHOD_TS_18661_3__=0",
                "__UINT32_MAX__=0xffffffffUL",
                "__GXX_EXPERIMENTAL_CXX0X__=1",
                "__ULFRACT_MAX__=0XFFFFFFFFP-32ULR",
                "__TA_IBIT__=16",
                "__LDBL_MAX_EXP__=128",
                "__WINT_MIN__=(-__WINT_MAX__ - 1)",
                "__INT_LEAST16_WIDTH__=16",
                "__ULLFRACT_MIN__=0.0ULLR",
                "__SCHAR_MAX__=0x7f",
                "__WCHAR_MIN__=(-__WCHAR_MAX__ - 1)",
                "__INT64_C(c)=c ## LL",
                "__DBL_DIG__=6",
                "__GCC_ATOMIC_POINTER_LOCK_FREE=1",
                "__AVR_HAVE_SPH__=1",
                "__LLACCUM_MIN__=(-0X1P15LLK-0X1P15LLK)",
                "__BUILTIN_AVR_KBITS=1",
                "__BUILTIN_AVR_ABSK=1",
                "__BUILTIN_AVR_ABSR=1",
                "__SIZEOF_INT__=2",
                "__SIZEOF_POINTER__=2",
                "__GCC_ATOMIC_CHAR16_T_LOCK_FREE=1",
                "__USACCUM_IBIT__=8",
                "__USER_LABEL_PREFIX__",
                "__STDC_HOSTED__=1",
                "__LDBL_HAS_INFINITY__=1",
                "__LFRACT_MIN__=(-0.5LR-0.5LR)",
                "__HA_IBIT__=8",
                "__FLT32_DIG__=6",
                "__TQ_IBIT__=0",
                "__FLT_EPSILON__=1.19209290e-7F",
                "__GXX_WEAK__=1",
                "__SHRT_WIDTH__=16",
                "__USFRACT_IBIT__=0",
                "__LDBL_MIN__=1.17549435e-38L",
                "__FRACT_MIN__=(-0.5R-0.5R)",
                "__AVR_SFR_OFFSET__=0x20",
                "__DEC32_MAX__=9.999999E96DF",
                "__cpp_threadsafe_static_init=200806",
                "__DA_IBIT__=32",
                "__INT32_MAX__=0x7fffffffL",
                "__UQQ_FBIT__=8",
                "__INT_WIDTH__=16",
                "__SIZEOF_LONG__=4",
                "__UACCUM_MAX__=0XFFFFFFFFP-16UK",
                "__UINT16_C(c)=c ## U",
                "__PTRDIFF_WIDTH__=16",
                "__DECIMAL_DIG__=9",
                "__LFRACT_EPSILON__=0x1P-31LR",
                "__AVR_2_BYTE_PC__=1",
                "__ULFRACT_MIN__=0.0ULR",
                "__INTMAX_WIDTH__=64",
                "__has_include_next(STR)=__has_include_next__(STR)",
                "__BUILTIN_AVR_ULLRBITS=1",
                "__LDBL_HAS_QUIET_NAN__=1",
                "__ULACCUM_IBIT__=32",
                "__UACCUM_EPSILON__=0x1P-16UK",
                "__BUILTIN_AVR_SEI=1",
                "__GNUC__=7",
                "__ULLACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-48ULLK",
                "__cpp_delegating_constructors=200604",
                "__HQ_IBIT__=0",
                "__BUILTIN_AVR_SWAP=1",
                "__FLT_HAS_DENORM__=1",
                "__SIZEOF_LONG_DOUBLE__=4",
                "__BIGGEST_ALIGNMENT__=1",
                "__STDC_UTF_16__=1",
                "__UINT24_MAX__=16777215UL",
                "__BUILTIN_AVR_NOP=1",
                "__GNUC_STDC_INLINE__=1",
                "__DQ_IBIT__=0",
                "__FLT32_HAS_INFINITY__=1",
                "__DBL_MAX__=double(3.40282347e+38L)",
                "__ULFRACT_IBIT__=0",
                "__cpp_raw_strings=200710",
                "__INT_FAST32_MAX__=0x7fffffffL",
                "__DBL_HAS_INFINITY__=1",
                "__INT64_MAX__=0x7fffffffffffffffLL",
                "__ACCUM_IBIT__=16",
                "__DEC32_MIN_EXP__=(-94)",
                "__BUILTIN_AVR_UKBITS=1",
                "__INTPTR_WIDTH__=16",
                "__BUILTIN_AVR_FMULSU=1",
                "__LACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LK",
                "__INT_FAST16_TYPE__=int",
                "__LDBL_HAS_DENORM__=1",
                "__BUILTIN_AVR_BITSK=1",
                "__BUILTIN_AVR_BITSR=1",
                "__cplusplus=201402L",
                "__cpp_ref_qualifiers=200710",
                "__DEC128_MAX__=9.999999999999999999999999999999999E6144DL",
                "__INT_LEAST32_MAX__=0x7fffffffL",
                "__USING_SJLJ_EXCEPTIONS__=1",
                "__DEC32_MIN__=1E-95DF",
                "__ACCUM_MAX__=0X7FFFFFFFP-15K",
                "__DEPRECATED=1",
                "__cpp_rvalue_references=200610",
                "__DBL_MAX_EXP__=128",
                "__USACCUM_EPSILON__=0x1P-8UHK",
                "__WCHAR_WIDTH__=16",
                "__FLT32_MAX__=3.40282347e+38F32",
                "__DEC128_EPSILON__=1E-33DL",
                "__SFRACT_MAX__=0X7FP-7HR",
                "__FRACT_IBIT__=0",
                "__PTRDIFF_MAX__=0x7fff",
                "__UACCUM_MIN__=0.0UK",
                "__UACCUM_IBIT__=16",
                "__BUILTIN_AVR_NOPS=1",
                "__BUILTIN_AVR_WDR=1",
                "__FLT32_HAS_QUIET_NAN__=1",
                "__GNUG__=7",
                "__LONG_LONG_MAX__=0x7fffffffffffffffLL",
                "__SIZEOF_SIZE_T__=2",
                "__ULACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULK",
                "__cpp_rvalue_reference=200610",
                "__cpp_nsdmi=200809",
                "__SIZEOF_WINT_T__=2",
                "__LONG_LONG_WIDTH__=64",
                "__cpp_initializer_lists=200806",
                "__FLT32_MAX_EXP__=128",
                "__SA_IBIT__=16",
                "__ULLACCUM_MIN__=0.0ULLK",
                "__BUILTIN_AVR_ROUNDUHK=1",
                "__BUILTIN_AVR_ROUNDUHR=1",
                "__cpp_hex_float=201603",
                "__GXX_ABI_VERSION=1011",
                "__INT24_MAX__=8388607L",
                "__UTA_FBIT__=48",
                "__FLT_MIN_EXP__=(-125)",
                "__USFRACT_MAX__=0XFFP-8UHR",
                "__UFRACT_IBIT__=0",
                "__BUILTIN_AVR_ROUNDFX=1",
                "__BUILTIN_AVR_ROUNDULK=1",
                "__BUILTIN_AVR_ROUNDULR=1",
                "__cpp_lambdas=200907",
                "__BUILTIN_AVR_COUNTLSLLK=1",
                "__BUILTIN_AVR_COUNTLSLLR=1",
                "__BUILTIN_AVR_ROUNDHK=1",
                "__INT_FAST64_TYPE__=long long int",
                "__BUILTIN_AVR_ROUNDHR=1",
                "__DBL_MIN__=double(1.17549435e-38L)",
                "__BUILTIN_AVR_COUNTLSK=1",
                "__BUILTIN_AVR_ROUNDLK=1",
                "__BUILTIN_AVR_COUNTLSR=1",
                "__BUILTIN_AVR_ROUNDLR=1",
                "__LACCUM_MIN__=(-0X1P31LK-0X1P31LK)",
                "__ULLACCUM_FBIT__=48",
                "__BUILTIN_AVR_LKBITS=1",
                "__ULLFRACT_EPSILON__=0x1P-64ULLR",
                "__DEC128_MIN__=1E-6143DL",
                "__REGISTER_PREFIX__",
                "__UINT16_MAX__=0xffffU",
                "__DBL_HAS_DENORM__=1",
                "__BUILTIN_AVR_ULKBITS=1",
                "__ACCUM_MIN__=(-0X1P15K-0X1P15K)",
                "__AVR_ARCH__=2",
                "__SQ_IBIT__=0",
                "__FLT32_MIN__=1.17549435e-38F32",
                "__UINT8_TYPE__=unsigned char",
                "__BUILTIN_AVR_ROUNDUK=1",
                "__BUILTIN_AVR_ROUNDUR=1",
                "__UHA_FBIT__=8",
                "__NO_INLINE__=1",
                "__SFRACT_MIN__=(-0.5HR-0.5HR)",
                "__UTQ_FBIT__=128",
                "__FLT_MANT_DIG__=24",
                "__LDBL_DECIMAL_DIG__=9",
                "__VERSION__=\"7.3.0\"",
                "__UINT64_C(c)=c ## ULL",
                "__ULLFRACT_FBIT__=64",
                "__cpp_unicode_characters=200704",
                "__FRACT_EPSILON__=0x1P-15R",
                "__ULACCUM_MIN__=0.0ULK",
                "__UDA_FBIT__=32",
                "__cpp_decltype_auto=201304",
                "__LLACCUM_EPSILON__=0x1P-47LLK",
                "__GCC_ATOMIC_INT_LOCK_FREE=1",
                "__FLT32_MANT_DIG__=24",
                "__BUILTIN_AVR_BITSUHK=1",
                "__BUILTIN_AVR_BITSUHR=1",
                "__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__",
                "__USFRACT_MIN__=0.0UHR",
                "__BUILTIN_AVR_BITSULK=1",
                "__ULLACCUM_IBIT__=16",
                "__BUILTIN_AVR_BITSULR=1",
                "__UQQ_IBIT__=0",
                "__BUILTIN_AVR_LLRBITS=1",
                "__SCHAR_WIDTH__=8",
                "__BUILTIN_AVR_BITSULLK=1",
                "__BUILTIN_AVR_BITSULLR=1",
                "__INT32_C(c)=c ## L",
                "__DEC64_EPSILON__=1E-15DD",
                "__ORDER_PDP_ENDIAN__=3412",
                "__DEC128_MIN_EXP__=(-6142)",
                "__UHQ_FBIT__=16",
                "__LLACCUM_FBIT__=47",
                "__FLT32_MAX_10_EXP__=38",
                "__BUILTIN_AVR_ROUNDULLK=1",
                "__BUILTIN_AVR_ROUNDULLR=1",
                "__INT_FAST32_TYPE__=long int",
                "__BUILTIN_AVR_HRBITS=1",
                "__UINT_LEAST16_TYPE__=unsigned int",
                "__BUILTIN_AVR_UHRBITS=1",
                "__INT16_MAX__=0x7fff",
                "__SIZE_TYPE__=unsigned int",
                "__UINT64_MAX__=0xffffffffffffffffULL",
                "__UDQ_FBIT__=64",
                "__INT8_TYPE__=signed char",
                "__cpp_digit_separators=201309",
                "__ELF__=1",
                "__ULFRACT_EPSILON__=0x1P-32ULR",
                "__LLFRACT_FBIT__=63",
                "__FLT_RADIX__=2",
                "__INT_LEAST16_TYPE__=int",
                "__BUILTIN_AVR_ABSFX=1",
                "__LDBL_EPSILON__=1.19209290e-7L",
                "__UINTMAX_C(c)=c ## ULL",
                "__INT24_MIN__=(-__INT24_MAX__-1)",
                "__SACCUM_MAX__=0X7FFFP-7HK",
                "__BUILTIN_AVR_ABSHR=1",
                "__SIG_ATOMIC_MAX__=0x7f",
                "__GCC_ATOMIC_WCHAR_T_LOCK_FREE=1",
                "__cpp_sized_deallocation=201309",
                "__SIZEOF_PTRDIFF_T__=2",
                "__AVR=1",
                "__BUILTIN_AVR_ABSLK=1",
                "__BUILTIN_AVR_ABSLR=1",
                "__LACCUM_EPSILON__=0x1P-31LK",
                "__DEC32_SUBNORMAL_MIN__=0.000001E-95DF",
                "__INT_FAST16_MAX__=0x7fff",
                "__UINT_FAST32_MAX__=0xffffffffUL",
                "__UINT_LEAST64_TYPE__=long long unsigned int",
                "__USACCUM_MAX__=0XFFFFP-8UHK",
                "__SFRACT_EPSILON__=0x1P-7HR",
                "__FLT_HAS_QUIET_NAN__=1",
                "__FLT_MAX_10_EXP__=38",
                "__LONG_MAX__=0x7fffffffL",
                "__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL",
                "__FLT_HAS_INFINITY__=1",
                "__cpp_unicode_literals=200710",
                "__USA_FBIT__=16",
                "__UINT_FAST16_TYPE__=unsigned int",
                "__DEC64_MAX__=9.999999999999999E384DD",
                "__INT_FAST32_WIDTH__=32",
                "__BUILTIN_AVR_RBITS=1",
                "__CHAR16_TYPE__=unsigned int",
                "__PRAGMA_REDEFINE_EXTNAME=1",
                "__SIZE_WIDTH__=16",
                "__INT_LEAST16_MAX__=0x7fff",
                "__DEC64_MANT_DIG__=16",
                "__UINT_LEAST32_MAX__=0xffffffffUL",
                "__SACCUM_FBIT__=7",
                "__FLT32_DENORM_MIN__=1.40129846e-45F32",
                "__GCC_ATOMIC_LONG_LOCK_FREE=1",
                "__SIG_ATOMIC_WIDTH__=8",
                "__INT_LEAST64_TYPE__=long long int",
                "__INT16_TYPE__=int",
                "__INT_LEAST8_TYPE__=signed char",
                "__SQ_FBIT__=31",
                "__DEC32_MAX_EXP__=97",
                "__INT_FAST8_MAX__=0x7f",
                "__INTPTR_MAX__=0x7fff",
                "__QQ_FBIT__=7",
                "__cpp_range_based_for=200907",
                "__UTA_IBIT__=16",
                "__AVR_ERRATA_SKIP__=1",
                "__FLT32_MIN_10_EXP__=(-37)",
                "__LDBL_MANT_DIG__=24",
                "__SFRACT_FBIT__=7",
                "__SACCUM_MIN__=(-0X1P7HK-0X1P7HK)",
                "__DBL_HAS_QUIET_NAN__=1",
                "__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1)",
                "AVR=1",
                "__BUILTIN_AVR_FMULS=1",
                "__cpp_return_type_deduction=201304",
                "__INTPTR_TYPE__=int",
                "__UINT16_TYPE__=unsigned int",
                "__WCHAR_TYPE__=int",
                "__SIZEOF_FLOAT__=4",
                "__AVR__=1",
                "__BUILTIN_AVR_INSERT_BITS=1",
                "__USQ_FBIT__=32",
                "__UINTPTR_MAX__=0xffffU",
                "__INT_FAST64_WIDTH__=64",
                "__DEC64_MIN_EXP__=(-382)",
                "__cpp_decltype=200707",
                "__FLT32_DECIMAL_DIG__=9",
                "__INT_FAST64_MAX__=0x7fffffffffffffffLL",
                "__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1",
                "__FLT_DIG__=6",
                "__UINT_FAST64_TYPE__=long long unsigned int",
                "__BUILTIN_AVR_BITSHK=1",
                "__BUILTIN_AVR_BITSHR=1",
                "__INT_MAX__=0x7fff",
                "__LACCUM_FBIT__=31",
                "__USACCUM_MIN__=0.0UHK",
                "__UHA_IBIT__=8",
                "__INT64_TYPE__=long long int",
                "__BUILTIN_AVR_BITSLK=1",
                "__BUILTIN_AVR_BITSLR=1",
                "__FLT_MAX_EXP__=128",
                "__UTQ_IBIT__=0",
                "__DBL_MANT_DIG__=24",
                "__cpp_inheriting_constructors=201511",
                "__BUILTIN_AVR_ULLKBITS=1",
                "__INT_LEAST64_MAX__=0x7fffffffffffffffLL",
                "__DEC64_MIN__=1E-383DD",
                "__WINT_TYPE__=int",
                "__UINT_LEAST32_TYPE__=long unsigned int",
                "__SIZEOF_SHORT__=2",
                "__ULLFRACT_IBIT__=0",
                "__LDBL_MIN_EXP__=(-125)",
                "__UDA_IBIT__=32",
                "__WINT_WIDTH__=16",
                "__INT_LEAST8_MAX__=0x7f",
                "__LFRACT_FBIT__=31",
                "__LDBL_MAX_10_EXP__=38",
                "__ATOMIC_RELAXED=0",
                "__DBL_EPSILON__=double(1.19209290e-7L)",
                "__BUILTIN_AVR_BITSUK=1",
                "__BUILTIN_AVR_BITSUR=1",
                "__UINT8_C(c)=c",
                "__INT_LEAST32_TYPE__=long int",
                "__BUILTIN_AVR_URBITS=1",
                "__SIZEOF_WCHAR_T__=2",
                "__LLFRACT_MAX__=0X7FFFFFFFFFFFFFFFP-63LLR",
                "__TQ_FBIT__=127",
                "__INT_FAST8_TYPE__=signed char",
                "__ULLACCUM_EPSILON__=0x1P-48ULLK",
                "__BUILTIN_AVR_ROUNDK=1",
                "__BUILTIN_AVR_ROUNDR=1",
                "__UHQ_IBIT__=0",
                "__LLACCUM_IBIT__=16",
                "__FLT32_EPSILON__=1.19209290e-7F32",
                "__DBL_DECIMAL_DIG__=9",
                "__STDC_UTF_32__=1",
                "__INT_FAST8_WIDTH__=8",
                "__DEC_EVAL_METHOD__=2",
                "__TA_FBIT__=47",
                "__UDQ_IBIT__=0",
                "__ORDER_BIG_ENDIAN__=4321",
                "__cpp_runtime_arrays=198712",
                "__WITH_AVRLIBC__=1",
                "__UINT64_TYPE__=long long unsigned int",
                "__ACCUM_EPSILON__=0x1P-15K",
                "__UINT32_C(c)=c ## UL",
                "__BUILTIN_AVR_COUNTLSUHK=1",
                "__INTMAX_MAX__=0x7fffffffffffffffLL",
                "__cpp_alias_templates=200704",
                "__BUILTIN_AVR_COUNTLSUHR=1",
                "__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__",
                "__FLT_DENORM_MIN__=1.40129846e-45F",
                "__LLFRACT_IBIT__=0",
                "__INT8_MAX__=0x7f",
                "__LONG_WIDTH__=32",
                "__UINT_FAST32_TYPE__=long unsigned int",
                "__CHAR32_TYPE__=long unsigned int",
                "__BUILTIN_AVR_COUNTLSULK=1",
                "__BUILTIN_AVR_COUNTLSULR=1",
                "__FLT_MAX__=3.40282347e+38F",
                "__cpp_constexpr=201304",
                "__USACCUM_FBIT__=8",
                "__BUILTIN_AVR_COUNTLSFX=1",
                "__INT32_TYPE__=long int",
                "__SIZEOF_DOUBLE__=4",
                "__FLT_MIN_10_EXP__=(-37)",
                "__UFRACT_EPSILON__=0x1P-16UR",
                "__INT_LEAST32_WIDTH__=32",
                "__BUILTIN_AVR_COUNTLSHK=1",
                "__BUILTIN_AVR_COUNTLSHR=1",
                "__INTMAX_TYPE__=long long int",
                "__BUILTIN_AVR_ABSLLK=1",
                "__BUILTIN_AVR_ABSLLR=1",
                "__DEC128_MAX_EXP__=6145",
                "__AVR_HAVE_16BIT_SP__=1",
                "__ATOMIC_CONSUME=1",
                "__GNUC_MINOR__=3",
                "__INT_FAST16_WIDTH__=16",
                "__UINTMAX_MAX__=0xffffffffffffffffULL",
                "__DEC32_MANT_DIG__=7",
                "__HA_FBIT__=7",
                "__BUILTIN_AVR_COUNTLSLK=1",
                "__BUILTIN_AVR_COUNTLSLR=1",
                "__BUILTIN_AVR_CLI=1",
                "__DBL_MAX_10_EXP__=38",
                "__LDBL_DENORM_MIN__=1.40129846e-45L",
                "__INT16_C(c)=c",
                "__cpp_generic_lambdas=201304",
                "__STDC__=1",
                "__PTRDIFF_TYPE__=int",
                "__LLFRACT_MIN__=(-0.5LLR-0.5LLR)",
                "__BUILTIN_AVR_LRBITS=1",
                "__ATOMIC_SEQ_CST=5",
                "__DA_FBIT__=31",
                "__UINT32_TYPE__=long unsigned int",
                "__BUILTIN_AVR_ROUNDLLK=1",
                "__UINTPTR_TYPE__=unsigned int",
                "__BUILTIN_AVR_ROUNDLLR=1",
                "__USA_IBIT__=16",
                "__BUILTIN_AVR_ULRBITS=1",
                "__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD",
                "__DEC128_MANT_DIG__=34",
                "__LDBL_MIN_10_EXP__=(-37)",
                "__BUILTIN_AVR_COUNTLSUK=1",
                "__BUILTIN_AVR_COUNTLSUR=1",
                "__SIZEOF_LONG_LONG__=8",
                "__ULACCUM_EPSILON__=0x1P-32ULK",
                "__cpp_user_defined_literals=200809",
                "__SACCUM_IBIT__=8",
                "__GCC_ATOMIC_LLONG_LOCK_FREE=1",
                "__LDBL_DIG__=6",
                "__FLT_DECIMAL_DIG__=9",
                "__UINT_FAST16_MAX__=0xffffU",
                "__GCC_ATOMIC_SHORT_LOCK_FREE=1",
                "__BUILTIN_AVR_ABSHK=1",
                "__BUILTIN_AVR_FLASH_SEGMENT=1",
                "__INT_LEAST64_WIDTH__=64",
                "__ULLFRACT_MAX__=0XFFFFFFFFFFFFFFFFP-64ULLR",
                "__UINT_FAST8_TYPE__=unsigned char",
                "__USFRACT_EPSILON__=0x1P-8UHR",
                "__ULACCUM_FBIT__=32",
                "__QQ_IBIT__=0",
                "__cpp_init_captures=201304",
                "__ATOMIC_ACQ_REL=4",
                "__ATOMIC_RELEASE=3",
                "__BUILTIN_AVR_FMUL=1"
            ]
        }
    ]
}

@GF-Huang
Copy link

GF-Huang commented Mar 9, 2021

Can you do things more seriously?

image

@adiazulay
Copy link
Contributor

Sorry the file was misnamed.
I'm rerunning the build now and the correct file name should display.

@belousa
Copy link

belousa commented Apr 9, 2021

Seems like the auto-configuration does not add the USBCON macro. Is there a reason for that?

@iFreilicht
Copy link

Seems like the auto-configuration does not add the USBCON macro. Is there a reason for that?

It should do that for all chips that actually have USB connectivity (Atmega32u4 etc.). What board are you seeing this issue with?

@belousa
Copy link

belousa commented Apr 10, 2021

I have Adafruit Metro. My arduino.json is, however,

{
    "board": "arduino:avr:uno",
    "sketch": "logo.ino",
    "port": "COM3"
}

@cnbrenci
Copy link

I'm also seeing the auto-configuration not add USBCON on a board with USB

vscode-arduino v0.4.0

arduino.json

{
    "configuration": "cpu=8MHzatmega328",
    "board": "arduino:avr:pro",
    "port": "COM3",
    "programmer": "arduino:avrispmkii",
    "sketch": "firmware\\sketches\\FrontTest\\FrontTest.ino"
}

c_cpp_properties.json

{
    "version": 4,
    "configurations": [
        {
            "name": "Arduino",
            "compilerPath": "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-g++",
            "compilerArgs": [
                "-std=gnu++11",
                "-fpermissive",
                "-fno-exceptions",
                "-ffunction-sections",
                "-fdata-sections",
                "-fno-threadsafe-statics",
                "-Wno-error=narrowing"
            ],
            "intelliSenseMode": "gcc-x64",
            "includePath": [
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino",
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs",
                "C:\\Users\\Cassi\\OneDrive\\Documents\\Arduino\\libraries\\EverydayCalendar",
                "C:\\Users\\Cassi\\OneDrive\\Documents\\Arduino\\libraries\\IQS5xx",
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src",
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src",
                "C:\\Users\\Cassi\\OneDrive\\Documents\\Arduino\\libraries\\Wire_BigBuffer",
                "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\7.3.0\\include",
                "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\7.3.0\\include-fixed",
                "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\avr\\include"
            ],
            "forcedInclude": [
                "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Arduino.h"
            ],
            "cStandard": "c11",
            "cppStandard": "c++11",
            "defines": [
                "F_CPU=8000000L",
                "ARDUINO=10813",
                "ARDUINO_AVR_PRO",
                "ARDUINO_ARCH_AVR",
                "__DBL_MIN_EXP__=(-125)",
                "__HQ_FBIT__=15",
                "__cpp_attributes=200809",
                "__UINT_LEAST16_MAX__=0xffffU",
                "__ATOMIC_ACQUIRE=2",
                "__SFRACT_IBIT__=0",
                "__FLT_MIN__=1.17549435e-38F",
                "__GCC_IEC_559_COMPLEX=0",
                "__BUILTIN_AVR_SLEEP=1",
                "__BUILTIN_AVR_COUNTLSULLK=1",
                "__cpp_aggregate_nsdmi=201304",
                "__BUILTIN_AVR_COUNTLSULLR=1",
                "__UFRACT_MAX__=0XFFFFP-16UR",
                "__UINT_LEAST8_TYPE__=unsigned char",
                "__DQ_FBIT__=63",
                "__INTMAX_C(c)=c ## LL",
                "__ULFRACT_FBIT__=32",
                "__SACCUM_EPSILON__=0x1P-7HK",
                "__CHAR_BIT__=8",
                "__USQ_IBIT__=0",
                "__UINT8_MAX__=0xff",
                "__ACCUM_FBIT__=15",
                "__WINT_MAX__=0x7fff",
                "__FLT32_MIN_EXP__=(-125)",
                "__cpp_static_assert=200410",
                "__USFRACT_FBIT__=8",
                "__ORDER_LITTLE_ENDIAN__=1234",
                "__SIZE_MAX__=0xffffU",
                "__WCHAR_MAX__=0x7fff",
                "__LACCUM_IBIT__=32",
                "__DBL_DENORM_MIN__=double(1.40129846e-45L)",
                "__GCC_ATOMIC_CHAR_LOCK_FREE=1",
                "__GCC_IEC_559=0",
                "__FLT_EVAL_METHOD__=0",
                "__BUILTIN_AVR_LLKBITS=1",
                "__cpp_binary_literals=201304",
                "__LLACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-47LLK",
                "__GCC_ATOMIC_CHAR32_T_LOCK_FREE=1",
                "__BUILTIN_AVR_HKBITS=1",
                "__BUILTIN_AVR_BITSLLK=1",
                "__FRACT_FBIT__=15",
                "__BUILTIN_AVR_BITSLLR=1",
                "__cpp_variadic_templates=200704",
                "__UINT_FAST64_MAX__=0xffffffffffffffffULL",
                "__SIG_ATOMIC_TYPE__=char",
                "__BUILTIN_AVR_UHKBITS=1",
                "__UACCUM_FBIT__=16",
                "__DBL_MIN_10_EXP__=(-37)",
                "__FINITE_MATH_ONLY__=0",
                "__cpp_variable_templates=201304",
                "__LFRACT_IBIT__=0",
                "__GNUC_PATCHLEVEL__=0",
                "__FLT32_HAS_DENORM__=1",
                "__LFRACT_MAX__=0X7FFFFFFFP-31LR",
                "__UINT_FAST8_MAX__=0xff",
                "__has_include(STR)=__has_include__(STR)",
                "__DEC64_MAX_EXP__=385",
                "__INT8_C(c)=c",
                "__INT_LEAST8_WIDTH__=8",
                "__UINT_LEAST64_MAX__=0xffffffffffffffffULL",
                "__SA_FBIT__=15",
                "__SHRT_MAX__=0x7fff",
                "__LDBL_MAX__=3.40282347e+38L",
                "__FRACT_MAX__=0X7FFFP-15R",
                "__UFRACT_FBIT__=16",
                "__UFRACT_MIN__=0.0UR",
                "__UINT_LEAST8_MAX__=0xff",
                "__GCC_ATOMIC_BOOL_LOCK_FREE=1",
                "__UINTMAX_TYPE__=long long unsigned int",
                "__LLFRACT_EPSILON__=0x1P-63LLR",
                "__BUILTIN_AVR_DELAY_CYCLES=1",
                "__DEC32_EPSILON__=1E-6DF",
                "__FLT_EVAL_METHOD_TS_18661_3__=0",
                "__UINT32_MAX__=0xffffffffUL",
                "__GXX_EXPERIMENTAL_CXX0X__=1",
                "__ULFRACT_MAX__=0XFFFFFFFFP-32ULR",
                "__TA_IBIT__=16",
                "__LDBL_MAX_EXP__=128",
                "__WINT_MIN__=(-__WINT_MAX__ - 1)",
                "__INT_LEAST16_WIDTH__=16",
                "__ULLFRACT_MIN__=0.0ULLR",
                "__SCHAR_MAX__=0x7f",
                "__WCHAR_MIN__=(-__WCHAR_MAX__ - 1)",
                "__INT64_C(c)=c ## LL",
                "__DBL_DIG__=6",
                "__GCC_ATOMIC_POINTER_LOCK_FREE=1",
                "__AVR_HAVE_SPH__=1",
                "__LLACCUM_MIN__=(-0X1P15LLK-0X1P15LLK)",
                "__BUILTIN_AVR_KBITS=1",
                "__BUILTIN_AVR_ABSK=1",
                "__BUILTIN_AVR_ABSR=1",
                "__SIZEOF_INT__=2",
                "__SIZEOF_POINTER__=2",
                "__GCC_ATOMIC_CHAR16_T_LOCK_FREE=1",
                "__USACCUM_IBIT__=8",
                "__USER_LABEL_PREFIX__",
                "__STDC_HOSTED__=1",
                "__LDBL_HAS_INFINITY__=1",
                "__LFRACT_MIN__=(-0.5LR-0.5LR)",
                "__HA_IBIT__=8",
                "__FLT32_DIG__=6",
                "__TQ_IBIT__=0",
                "__FLT_EPSILON__=1.19209290e-7F",
                "__GXX_WEAK__=1",
                "__SHRT_WIDTH__=16",
                "__USFRACT_IBIT__=0",
                "__LDBL_MIN__=1.17549435e-38L",
                "__FRACT_MIN__=(-0.5R-0.5R)",
                "__AVR_SFR_OFFSET__=0x20",
                "__DEC32_MAX__=9.999999E96DF",
                "__cpp_threadsafe_static_init=200806",
                "__DA_IBIT__=32",
                "__INT32_MAX__=0x7fffffffL",
                "__UQQ_FBIT__=8",
                "__INT_WIDTH__=16",
                "__SIZEOF_LONG__=4",
                "__UACCUM_MAX__=0XFFFFFFFFP-16UK",
                "__UINT16_C(c)=c ## U",
                "__PTRDIFF_WIDTH__=16",
                "__DECIMAL_DIG__=9",
                "__LFRACT_EPSILON__=0x1P-31LR",
                "__AVR_2_BYTE_PC__=1",
                "__ULFRACT_MIN__=0.0ULR",
                "__INTMAX_WIDTH__=64",
                "__has_include_next(STR)=__has_include_next__(STR)",
                "__BUILTIN_AVR_ULLRBITS=1",
                "__LDBL_HAS_QUIET_NAN__=1",
                "__ULACCUM_IBIT__=32",
                "__UACCUM_EPSILON__=0x1P-16UK",
                "__BUILTIN_AVR_SEI=1",
                "__GNUC__=7",
                "__ULLACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-48ULLK",
                "__cpp_delegating_constructors=200604",
                "__HQ_IBIT__=0",
                "__BUILTIN_AVR_SWAP=1",
                "__FLT_HAS_DENORM__=1",
                "__SIZEOF_LONG_DOUBLE__=4",
                "__BIGGEST_ALIGNMENT__=1",
                "__STDC_UTF_16__=1",
                "__UINT24_MAX__=16777215UL",
                "__BUILTIN_AVR_NOP=1",
                "__GNUC_STDC_INLINE__=1",
                "__DQ_IBIT__=0",
                "__FLT32_HAS_INFINITY__=1",
                "__DBL_MAX__=double(3.40282347e+38L)",
                "__ULFRACT_IBIT__=0",
                "__cpp_raw_strings=200710",
                "__INT_FAST32_MAX__=0x7fffffffL",
                "__DBL_HAS_INFINITY__=1",
                "__INT64_MAX__=0x7fffffffffffffffLL",
                "__ACCUM_IBIT__=16",
                "__DEC32_MIN_EXP__=(-94)",
                "__BUILTIN_AVR_UKBITS=1",
                "__INTPTR_WIDTH__=16",
                "__BUILTIN_AVR_FMULSU=1",
                "__LACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LK",
                "__INT_FAST16_TYPE__=int",
                "__LDBL_HAS_DENORM__=1",
                "__BUILTIN_AVR_BITSK=1",
                "__BUILTIN_AVR_BITSR=1",
                "__cplusplus=201402L",
                "__cpp_ref_qualifiers=200710",
                "__DEC128_MAX__=9.999999999999999999999999999999999E6144DL",
                "__INT_LEAST32_MAX__=0x7fffffffL",
                "__USING_SJLJ_EXCEPTIONS__=1",
                "__DEC32_MIN__=1E-95DF",
                "__ACCUM_MAX__=0X7FFFFFFFP-15K",
                "__DEPRECATED=1",
                "__cpp_rvalue_references=200610",
                "__DBL_MAX_EXP__=128",
                "__USACCUM_EPSILON__=0x1P-8UHK",
                "__WCHAR_WIDTH__=16",
                "__FLT32_MAX__=3.40282347e+38F32",
                "__DEC128_EPSILON__=1E-33DL",
                "__SFRACT_MAX__=0X7FP-7HR",
                "__FRACT_IBIT__=0",
                "__PTRDIFF_MAX__=0x7fff",
                "__UACCUM_MIN__=0.0UK",
                "__UACCUM_IBIT__=16",
                "__BUILTIN_AVR_NOPS=1",
                "__BUILTIN_AVR_WDR=1",
                "__FLT32_HAS_QUIET_NAN__=1",
                "__GNUG__=7",
                "__LONG_LONG_MAX__=0x7fffffffffffffffLL",
                "__SIZEOF_SIZE_T__=2",
                "__ULACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULK",
                "__cpp_rvalue_reference=200610",
                "__cpp_nsdmi=200809",
                "__SIZEOF_WINT_T__=2",
                "__LONG_LONG_WIDTH__=64",
                "__cpp_initializer_lists=200806",
                "__FLT32_MAX_EXP__=128",
                "__SA_IBIT__=16",
                "__ULLACCUM_MIN__=0.0ULLK",
                "__BUILTIN_AVR_ROUNDUHK=1",
                "__BUILTIN_AVR_ROUNDUHR=1",
                "__cpp_hex_float=201603",
                "__GXX_ABI_VERSION=1011",
                "__INT24_MAX__=8388607L",
                "__UTA_FBIT__=48",
                "__FLT_MIN_EXP__=(-125)",
                "__USFRACT_MAX__=0XFFP-8UHR",
                "__UFRACT_IBIT__=0",
                "__BUILTIN_AVR_ROUNDFX=1",
                "__BUILTIN_AVR_ROUNDULK=1",
                "__BUILTIN_AVR_ROUNDULR=1",
                "__cpp_lambdas=200907",
                "__BUILTIN_AVR_COUNTLSLLK=1",
                "__BUILTIN_AVR_COUNTLSLLR=1",
                "__BUILTIN_AVR_ROUNDHK=1",
                "__INT_FAST64_TYPE__=long long int",
                "__BUILTIN_AVR_ROUNDHR=1",
                "__DBL_MIN__=double(1.17549435e-38L)",
                "__BUILTIN_AVR_COUNTLSK=1",
                "__BUILTIN_AVR_ROUNDLK=1",
                "__BUILTIN_AVR_COUNTLSR=1",
                "__BUILTIN_AVR_ROUNDLR=1",
                "__LACCUM_MIN__=(-0X1P31LK-0X1P31LK)",
                "__ULLACCUM_FBIT__=48",
                "__BUILTIN_AVR_LKBITS=1",
                "__ULLFRACT_EPSILON__=0x1P-64ULLR",
                "__DEC128_MIN__=1E-6143DL",
                "__REGISTER_PREFIX__",
                "__UINT16_MAX__=0xffffU",
                "__DBL_HAS_DENORM__=1",
                "__BUILTIN_AVR_ULKBITS=1",
                "__ACCUM_MIN__=(-0X1P15K-0X1P15K)",
                "__AVR_ARCH__=2",
                "__SQ_IBIT__=0",
                "__FLT32_MIN__=1.17549435e-38F32",
                "__UINT8_TYPE__=unsigned char",
                "__BUILTIN_AVR_ROUNDUK=1",
                "__BUILTIN_AVR_ROUNDUR=1",
                "__UHA_FBIT__=8",
                "__NO_INLINE__=1",
                "__SFRACT_MIN__=(-0.5HR-0.5HR)",
                "__UTQ_FBIT__=128",
                "__FLT_MANT_DIG__=24",
                "__LDBL_DECIMAL_DIG__=9",
                "__VERSION__=\"7.3.0\"",
                "__UINT64_C(c)=c ## ULL",
                "__ULLFRACT_FBIT__=64",
                "__cpp_unicode_characters=200704",
                "__FRACT_EPSILON__=0x1P-15R",
                "__ULACCUM_MIN__=0.0ULK",
                "__UDA_FBIT__=32",
                "__cpp_decltype_auto=201304",
                "__LLACCUM_EPSILON__=0x1P-47LLK",
                "__GCC_ATOMIC_INT_LOCK_FREE=1",
                "__FLT32_MANT_DIG__=24",
                "__BUILTIN_AVR_BITSUHK=1",
                "__BUILTIN_AVR_BITSUHR=1",
                "__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__",
                "__USFRACT_MIN__=0.0UHR",
                "__BUILTIN_AVR_BITSULK=1",
                "__ULLACCUM_IBIT__=16",
                "__BUILTIN_AVR_BITSULR=1",
                "__UQQ_IBIT__=0",
                "__BUILTIN_AVR_LLRBITS=1",
                "__SCHAR_WIDTH__=8",
                "__BUILTIN_AVR_BITSULLK=1",
                "__BUILTIN_AVR_BITSULLR=1",
                "__INT32_C(c)=c ## L",
                "__DEC64_EPSILON__=1E-15DD",
                "__ORDER_PDP_ENDIAN__=3412",
                "__DEC128_MIN_EXP__=(-6142)",
                "__UHQ_FBIT__=16",
                "__LLACCUM_FBIT__=47",
                "__FLT32_MAX_10_EXP__=38",
                "__BUILTIN_AVR_ROUNDULLK=1",
                "__BUILTIN_AVR_ROUNDULLR=1",
                "__INT_FAST32_TYPE__=long int",
                "__BUILTIN_AVR_HRBITS=1",
                "__UINT_LEAST16_TYPE__=unsigned int",
                "__BUILTIN_AVR_UHRBITS=1",
                "__INT16_MAX__=0x7fff",
                "__SIZE_TYPE__=unsigned int",
                "__UINT64_MAX__=0xffffffffffffffffULL",
                "__UDQ_FBIT__=64",
                "__INT8_TYPE__=signed char",
                "__cpp_digit_separators=201309",
                "__ELF__=1",
                "__ULFRACT_EPSILON__=0x1P-32ULR",
                "__LLFRACT_FBIT__=63",
                "__FLT_RADIX__=2",
                "__INT_LEAST16_TYPE__=int",
                "__BUILTIN_AVR_ABSFX=1",
                "__LDBL_EPSILON__=1.19209290e-7L",
                "__UINTMAX_C(c)=c ## ULL",
                "__INT24_MIN__=(-__INT24_MAX__-1)",
                "__SACCUM_MAX__=0X7FFFP-7HK",
                "__BUILTIN_AVR_ABSHR=1",
                "__SIG_ATOMIC_MAX__=0x7f",
                "__GCC_ATOMIC_WCHAR_T_LOCK_FREE=1",
                "__cpp_sized_deallocation=201309",
                "__SIZEOF_PTRDIFF_T__=2",
                "__AVR=1",
                "__BUILTIN_AVR_ABSLK=1",
                "__BUILTIN_AVR_ABSLR=1",
                "__LACCUM_EPSILON__=0x1P-31LK",
                "__DEC32_SUBNORMAL_MIN__=0.000001E-95DF",
                "__INT_FAST16_MAX__=0x7fff",
                "__UINT_FAST32_MAX__=0xffffffffUL",
                "__UINT_LEAST64_TYPE__=long long unsigned int",
                "__USACCUM_MAX__=0XFFFFP-8UHK",
                "__SFRACT_EPSILON__=0x1P-7HR",
                "__FLT_HAS_QUIET_NAN__=1",
                "__FLT_MAX_10_EXP__=38",
                "__LONG_MAX__=0x7fffffffL",
                "__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL",
                "__FLT_HAS_INFINITY__=1",
                "__cpp_unicode_literals=200710",
                "__USA_FBIT__=16",
                "__UINT_FAST16_TYPE__=unsigned int",
                "__DEC64_MAX__=9.999999999999999E384DD",
                "__INT_FAST32_WIDTH__=32",
                "__BUILTIN_AVR_RBITS=1",
                "__CHAR16_TYPE__=unsigned int",
                "__PRAGMA_REDEFINE_EXTNAME=1",
                "__SIZE_WIDTH__=16",
                "__INT_LEAST16_MAX__=0x7fff",
                "__DEC64_MANT_DIG__=16",
                "__UINT_LEAST32_MAX__=0xffffffffUL",
                "__SACCUM_FBIT__=7",
                "__FLT32_DENORM_MIN__=1.40129846e-45F32",
                "__GCC_ATOMIC_LONG_LOCK_FREE=1",
                "__SIG_ATOMIC_WIDTH__=8",
                "__INT_LEAST64_TYPE__=long long int",
                "__INT16_TYPE__=int",
                "__INT_LEAST8_TYPE__=signed char",
                "__SQ_FBIT__=31",
                "__DEC32_MAX_EXP__=97",
                "__INT_FAST8_MAX__=0x7f",
                "__INTPTR_MAX__=0x7fff",
                "__QQ_FBIT__=7",
                "__cpp_range_based_for=200907",
                "__UTA_IBIT__=16",
                "__AVR_ERRATA_SKIP__=1",
                "__FLT32_MIN_10_EXP__=(-37)",
                "__LDBL_MANT_DIG__=24",
                "__SFRACT_FBIT__=7",
                "__SACCUM_MIN__=(-0X1P7HK-0X1P7HK)",
                "__DBL_HAS_QUIET_NAN__=1",
                "__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1)",
                "AVR=1",
                "__BUILTIN_AVR_FMULS=1",
                "__cpp_return_type_deduction=201304",
                "__INTPTR_TYPE__=int",
                "__UINT16_TYPE__=unsigned int",
                "__WCHAR_TYPE__=int",
                "__SIZEOF_FLOAT__=4",
                "__AVR__=1",
                "__BUILTIN_AVR_INSERT_BITS=1",
                "__USQ_FBIT__=32",
                "__UINTPTR_MAX__=0xffffU",
                "__INT_FAST64_WIDTH__=64",
                "__DEC64_MIN_EXP__=(-382)",
                "__cpp_decltype=200707",
                "__FLT32_DECIMAL_DIG__=9",
                "__INT_FAST64_MAX__=0x7fffffffffffffffLL",
                "__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1",
                "__FLT_DIG__=6",
                "__UINT_FAST64_TYPE__=long long unsigned int",
                "__BUILTIN_AVR_BITSHK=1",
                "__BUILTIN_AVR_BITSHR=1",
                "__INT_MAX__=0x7fff",
                "__LACCUM_FBIT__=31",
                "__USACCUM_MIN__=0.0UHK",
                "__UHA_IBIT__=8",
                "__INT64_TYPE__=long long int",
                "__BUILTIN_AVR_BITSLK=1",
                "__BUILTIN_AVR_BITSLR=1",
                "__FLT_MAX_EXP__=128",
                "__UTQ_IBIT__=0",
                "__DBL_MANT_DIG__=24",
                "__cpp_inheriting_constructors=201511",
                "__BUILTIN_AVR_ULLKBITS=1",
                "__INT_LEAST64_MAX__=0x7fffffffffffffffLL",
                "__DEC64_MIN__=1E-383DD",
                "__WINT_TYPE__=int",
                "__UINT_LEAST32_TYPE__=long unsigned int",
                "__SIZEOF_SHORT__=2",
                "__ULLFRACT_IBIT__=0",
                "__LDBL_MIN_EXP__=(-125)",
                "__UDA_IBIT__=32",
                "__WINT_WIDTH__=16",
                "__INT_LEAST8_MAX__=0x7f",
                "__LFRACT_FBIT__=31",
                "__LDBL_MAX_10_EXP__=38",
                "__ATOMIC_RELAXED=0",
                "__DBL_EPSILON__=double(1.19209290e-7L)",
                "__BUILTIN_AVR_BITSUK=1",
                "__BUILTIN_AVR_BITSUR=1",
                "__UINT8_C(c)=c",
                "__INT_LEAST32_TYPE__=long int",
                "__BUILTIN_AVR_URBITS=1",
                "__SIZEOF_WCHAR_T__=2",
                "__LLFRACT_MAX__=0X7FFFFFFFFFFFFFFFP-63LLR",
                "__TQ_FBIT__=127",
                "__INT_FAST8_TYPE__=signed char",
                "__ULLACCUM_EPSILON__=0x1P-48ULLK",
                "__BUILTIN_AVR_ROUNDK=1",
                "__BUILTIN_AVR_ROUNDR=1",
                "__UHQ_IBIT__=0",
                "__LLACCUM_IBIT__=16",
                "__FLT32_EPSILON__=1.19209290e-7F32",
                "__DBL_DECIMAL_DIG__=9",
                "__STDC_UTF_32__=1",
                "__INT_FAST8_WIDTH__=8",
                "__DEC_EVAL_METHOD__=2",
                "__TA_FBIT__=47",
                "__UDQ_IBIT__=0",
                "__ORDER_BIG_ENDIAN__=4321",
                "__cpp_runtime_arrays=198712",
                "__WITH_AVRLIBC__=1",
                "__UINT64_TYPE__=long long unsigned int",
                "__ACCUM_EPSILON__=0x1P-15K",
                "__UINT32_C(c)=c ## UL",
                "__BUILTIN_AVR_COUNTLSUHK=1",
                "__INTMAX_MAX__=0x7fffffffffffffffLL",
                "__cpp_alias_templates=200704",
                "__BUILTIN_AVR_COUNTLSUHR=1",
                "__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__",
                "__FLT_DENORM_MIN__=1.40129846e-45F",
                "__LLFRACT_IBIT__=0",
                "__INT8_MAX__=0x7f",
                "__LONG_WIDTH__=32",
                "__UINT_FAST32_TYPE__=long unsigned int",
                "__CHAR32_TYPE__=long unsigned int",
                "__BUILTIN_AVR_COUNTLSULK=1",
                "__BUILTIN_AVR_COUNTLSULR=1",
                "__FLT_MAX__=3.40282347e+38F",
                "__cpp_constexpr=201304",
                "__USACCUM_FBIT__=8",
                "__BUILTIN_AVR_COUNTLSFX=1",
                "__INT32_TYPE__=long int",
                "__SIZEOF_DOUBLE__=4",
                "__FLT_MIN_10_EXP__=(-37)",
                "__UFRACT_EPSILON__=0x1P-16UR",
                "__INT_LEAST32_WIDTH__=32",
                "__BUILTIN_AVR_COUNTLSHK=1",
                "__BUILTIN_AVR_COUNTLSHR=1",
                "__INTMAX_TYPE__=long long int",
                "__BUILTIN_AVR_ABSLLK=1",
                "__BUILTIN_AVR_ABSLLR=1",
                "__DEC128_MAX_EXP__=6145",
                "__AVR_HAVE_16BIT_SP__=1",
                "__ATOMIC_CONSUME=1",
                "__GNUC_MINOR__=3",
                "__INT_FAST16_WIDTH__=16",
                "__UINTMAX_MAX__=0xffffffffffffffffULL",
                "__DEC32_MANT_DIG__=7",
                "__HA_FBIT__=7",
                "__BUILTIN_AVR_COUNTLSLK=1",
                "__BUILTIN_AVR_COUNTLSLR=1",
                "__BUILTIN_AVR_CLI=1",
                "__DBL_MAX_10_EXP__=38",
                "__LDBL_DENORM_MIN__=1.40129846e-45L",
                "__INT16_C(c)=c",
                "__cpp_generic_lambdas=201304",
                "__STDC__=1",
                "__PTRDIFF_TYPE__=int",
                "__LLFRACT_MIN__=(-0.5LLR-0.5LLR)",
                "__BUILTIN_AVR_LRBITS=1",
                "__ATOMIC_SEQ_CST=5",
                "__DA_FBIT__=31",
                "__UINT32_TYPE__=long unsigned int",
                "__BUILTIN_AVR_ROUNDLLK=1",
                "__UINTPTR_TYPE__=unsigned int",
                "__BUILTIN_AVR_ROUNDLLR=1",
                "__USA_IBIT__=16",
                "__BUILTIN_AVR_ULRBITS=1",
                "__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD",
                "__DEC128_MANT_DIG__=34",
                "__LDBL_MIN_10_EXP__=(-37)",
                "__BUILTIN_AVR_COUNTLSUK=1",
                "__BUILTIN_AVR_COUNTLSUR=1",
                "__SIZEOF_LONG_LONG__=8",
                "__ULACCUM_EPSILON__=0x1P-32ULK",
                "__cpp_user_defined_literals=200809",
                "__SACCUM_IBIT__=8",
                "__GCC_ATOMIC_LLONG_LOCK_FREE=1",
                "__LDBL_DIG__=6",
                "__FLT_DECIMAL_DIG__=9",
                "__UINT_FAST16_MAX__=0xffffU",
                "__GCC_ATOMIC_SHORT_LOCK_FREE=1",
                "__BUILTIN_AVR_ABSHK=1",
                "__BUILTIN_AVR_FLASH_SEGMENT=1",
                "__INT_LEAST64_WIDTH__=64",
                "__ULLFRACT_MAX__=0XFFFFFFFFFFFFFFFFP-64ULLR",
                "__UINT_FAST8_TYPE__=unsigned char",
                "__USFRACT_EPSILON__=0x1P-8UHR",
                "__ULACCUM_FBIT__=32",
                "__QQ_IBIT__=0",
                "__cpp_init_captures=201304",
                "__ATOMIC_ACQ_REL=4",
                "__ATOMIC_RELEASE=3",
                "__BUILTIN_AVR_FMUL=1"
            ]
        }
    ]
}

@iFreilicht
Copy link

This should be fixed with the next release, see #1216.

@Peter707-try
Copy link

0.4.1.rc1 works fine for me: USBCON is automatically added to c_cpp_properties.json
The Serial (not defined issue is solved.
Thank You very much :) +1:

@kakaooo
Copy link

kakaooo commented Jun 21, 2021

I'm still having the same issue. I am using LVGL libraries through the Platformio yet the problem is the same. Serial is undefined. Tried to apply both solutions of @gemul ' s solutions. Tried to use the tag parser then the editor recognizes the Serial command but it cannot be compiled within the same issue. However, tried to add "USBCON" command into my c_cpp_properties.json file but no change still receiving the same error message. What am i missing? Any ideas on how to fix this?

I am using a ready platform board from Yeacreate (Nscreen32) it powered by ESP32- WROVER-IE board. The other functions such as digitalWrite, pinMode etc are working just fine. But not for Serial command.
2021-06-21_16-18-45
2021-06-21_15-52-47
2021-06-21_15-52-23

@MarcelloTheArcane
Copy link

If you want Intellisense autocomplete, instead of "USBCON" add "UBRRH":

image

image

Source

@Revel8804
Copy link

I am getting this error now.
Screen Shot 2022-05-25 at 12 48 55 PM
Screen Shot 2022-05-25 at 12 51 57 PM

"name": "Arduino", "compilerPath": "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-g++", "compilerArgs": [ "-w", "-std=gnu++11", "-fpermissive", "-fno-exceptions", "-ffunction-sections", "-fdata-sections", "-fno-threadsafe-statics", "-Wno-error=narrowing" ], "intelliSenseMode": "gcc-x64", "includePath": [ "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino", "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\leonardo", "C:\\Users\\Sonic\\Documents\\Arduino\\libraries\\Servo\\src", "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\7.3.0\\include", "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\lib\\gcc\\avr\\7.3.0\\include-fixed", "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\avr\\include" ], "forcedInclude": [ "C:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino\\Arduino.h" ], "cStandard": "c11", "cppStandard": "c++11", "defines": [ "F_CPU=16000000L", "ARDUINO=10819", "ARDUINO_AVR_LEONARDO", "ARDUINO_ARCH_AVR", "USB_VID=0x2341", "USB_PID=0x8036", "USB_MANUFACTURER=\"Unknown\"", "USB_PRODUCT=\"Arduino Leonardo\"", "__DBL_MIN_EXP__=(-125)", "__HQ_FBIT__=15", "__cpp_attributes=200809", "__UINT_LEAST16_MAX__=0xffffU", "__ATOMIC_ACQUIRE=2", "__SFRACT_IBIT__=0", "__FLT_MIN__=1.17549435e-38F", "__GCC_IEC_559_COMPLEX=0", "__BUILTIN_AVR_SLEEP=1", "__BUILTIN_AVR_COUNTLSULLK=1", "__cpp_aggregate_nsdmi=201304", "__BUILTIN_AVR_COUNTLSULLR=1", "__UFRACT_MAX__=0XFFFFP-16UR", "__UINT_LEAST8_TYPE__=unsigned char", "__DQ_FBIT__=63", "__INTMAX_C(c)=c ## LL", "__ULFRACT_FBIT__=32", "__SACCUM_EPSILON__=0x1P-7HK", "__CHAR_BIT__=8", "__USQ_IBIT__=0", "__UINT8_MAX__=0xff", "__ACCUM_FBIT__=15", "__WINT_MAX__=0x7fff", "__FLT32_MIN_EXP__=(-125)", "__cpp_static_assert=200410", "__USFRACT_FBIT__=8", "__ORDER_LITTLE_ENDIAN__=1234", "__SIZE_MAX__=0xffffU", "__WCHAR_MAX__=0x7fff", "__LACCUM_IBIT__=32", "__DBL_DENORM_MIN__=double(1.40129846e-45L)", "__GCC_ATOMIC_CHAR_LOCK_FREE=1", "__GCC_IEC_559=0", "__FLT_EVAL_METHOD__=0", "__BUILTIN_AVR_LLKBITS=1", "__cpp_binary_literals=201304", "__LLACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-47LLK", "__GCC_ATOMIC_CHAR32_T_LOCK_FREE=1", "__BUILTIN_AVR_HKBITS=1", "__BUILTIN_AVR_BITSLLK=1", "__FRACT_FBIT__=15", "__BUILTIN_AVR_BITSLLR=1", "__cpp_variadic_templates=200704", "__UINT_FAST64_MAX__=0xffffffffffffffffULL", "__SIG_ATOMIC_TYPE__=char", "__BUILTIN_AVR_UHKBITS=1", "__UACCUM_FBIT__=16", "__DBL_MIN_10_EXP__=(-37)", "__FINITE_MATH_ONLY__=0", "__cpp_variable_templates=201304", "__LFRACT_IBIT__=0", "__GNUC_PATCHLEVEL__=0", "__FLT32_HAS_DENORM__=1", "__LFRACT_MAX__=0X7FFFFFFFP-31LR", "__UINT_FAST8_MAX__=0xff", "__has_include(STR)=__has_include__(STR)", "__DEC64_MAX_EXP__=385", "__INT8_C(c)=c", "__INT_LEAST8_WIDTH__=8", "__UINT_LEAST64_MAX__=0xffffffffffffffffULL", "__SA_FBIT__=15", "__SHRT_MAX__=0x7fff", "__LDBL_MAX__=3.40282347e+38L", "__FRACT_MAX__=0X7FFFP-15R", "__UFRACT_FBIT__=16", "__UFRACT_MIN__=0.0UR", "__UINT_LEAST8_MAX__=0xff", "__GCC_ATOMIC_BOOL_LOCK_FREE=1", "__UINTMAX_TYPE__=long long unsigned int", "__LLFRACT_EPSILON__=0x1P-63LLR", "__BUILTIN_AVR_DELAY_CYCLES=1", "__DEC32_EPSILON__=1E-6DF", "__FLT_EVAL_METHOD_TS_18661_3__=0", "__UINT32_MAX__=0xffffffffUL", "__GXX_EXPERIMENTAL_CXX0X__=1", "__ULFRACT_MAX__=0XFFFFFFFFP-32ULR", "__TA_IBIT__=16", "__LDBL_MAX_EXP__=128", "__WINT_MIN__=(-__WINT_MAX__ - 1)", "__INT_LEAST16_WIDTH__=16", "__ULLFRACT_MIN__=0.0ULLR", "__SCHAR_MAX__=0x7f", "__WCHAR_MIN__=(-__WCHAR_MAX__ - 1)", "__INT64_C(c)=c ## LL", "__DBL_DIG__=6", "__GCC_ATOMIC_POINTER_LOCK_FREE=1", "__AVR_HAVE_SPH__=1", "__LLACCUM_MIN__=(-0X1P15LLK-0X1P15LLK)", "__BUILTIN_AVR_KBITS=1", "__BUILTIN_AVR_ABSK=1", "__BUILTIN_AVR_ABSR=1", "__SIZEOF_INT__=2", "__SIZEOF_POINTER__=2", "__GCC_ATOMIC_CHAR16_T_LOCK_FREE=1", "__USACCUM_IBIT__=8", "__USER_LABEL_PREFIX__", "__STDC_HOSTED__=1", "__LDBL_HAS_INFINITY__=1", "__LFRACT_MIN__=(-0.5LR-0.5LR)", "__HA_IBIT__=8", "__FLT32_DIG__=6", "__TQ_IBIT__=0", "__FLT_EPSILON__=1.19209290e-7F", "__GXX_WEAK__=1", "__SHRT_WIDTH__=16", "__USFRACT_IBIT__=0", "__LDBL_MIN__=1.17549435e-38L", "__FRACT_MIN__=(-0.5R-0.5R)", "__AVR_SFR_OFFSET__=0x20", "__DEC32_MAX__=9.999999E96DF", "__cpp_threadsafe_static_init=200806", "__DA_IBIT__=32", "__INT32_MAX__=0x7fffffffL", "__UQQ_FBIT__=8", "__INT_WIDTH__=16", "__SIZEOF_LONG__=4", "__UACCUM_MAX__=0XFFFFFFFFP-16UK", "__UINT16_C(c)=c ## U", "__PTRDIFF_WIDTH__=16", "__DECIMAL_DIG__=9", "__LFRACT_EPSILON__=0x1P-31LR", "__AVR_2_BYTE_PC__=1", "__ULFRACT_MIN__=0.0ULR", "__INTMAX_WIDTH__=64", "__has_include_next(STR)=__has_include_next__(STR)", "__BUILTIN_AVR_ULLRBITS=1", "__LDBL_HAS_QUIET_NAN__=1", "__ULACCUM_IBIT__=32", "__UACCUM_EPSILON__=0x1P-16UK", "__BUILTIN_AVR_SEI=1", "__GNUC__=7", "__ULLACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-48ULLK", "__cpp_delegating_constructors=200604", "__HQ_IBIT__=0", "__BUILTIN_AVR_SWAP=1", "__FLT_HAS_DENORM__=1", "__SIZEOF_LONG_DOUBLE__=4", "__BIGGEST_ALIGNMENT__=1", "__STDC_UTF_16__=1", "__UINT24_MAX__=16777215UL", "__BUILTIN_AVR_NOP=1", "__GNUC_STDC_INLINE__=1", "__DQ_IBIT__=0", "__FLT32_HAS_INFINITY__=1", "__DBL_MAX__=double(3.40282347e+38L)", "__ULFRACT_IBIT__=0", "__cpp_raw_strings=200710", "__INT_FAST32_MAX__=0x7fffffffL", "__DBL_HAS_INFINITY__=1", "__INT64_MAX__=0x7fffffffffffffffLL", "__ACCUM_IBIT__=16", "__DEC32_MIN_EXP__=(-94)", "__BUILTIN_AVR_UKBITS=1", "__INTPTR_WIDTH__=16", "__BUILTIN_AVR_FMULSU=1", "__LACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LK", "__INT_FAST16_TYPE__=int", "__LDBL_HAS_DENORM__=1", "__BUILTIN_AVR_BITSK=1", "__BUILTIN_AVR_BITSR=1", "__cplusplus=201402L", "__cpp_ref_qualifiers=200710", "__DEC128_MAX__=9.999999999999999999999999999999999E6144DL", "__INT_LEAST32_MAX__=0x7fffffffL", "__USING_SJLJ_EXCEPTIONS__=1", "__DEC32_MIN__=1E-95DF", "__ACCUM_MAX__=0X7FFFFFFFP-15K", "__DEPRECATED=1", "__cpp_rvalue_references=200610", "__DBL_MAX_EXP__=128", "__USACCUM_EPSILON__=0x1P-8UHK", "__WCHAR_WIDTH__=16", "__FLT32_MAX__=3.40282347e+38F32", "__DEC128_EPSILON__=1E-33DL", "__SFRACT_MAX__=0X7FP-7HR", "__FRACT_IBIT__=0", "__PTRDIFF_MAX__=0x7fff", "__UACCUM_MIN__=0.0UK", "__UACCUM_IBIT__=16", "__BUILTIN_AVR_NOPS=1", "__BUILTIN_AVR_WDR=1", "__FLT32_HAS_QUIET_NAN__=1", "__GNUG__=7", "__LONG_LONG_MAX__=0x7fffffffffffffffLL", "__SIZEOF_SIZE_T__=2", "__ULACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULK", "__cpp_rvalue_reference=200610", "__cpp_nsdmi=200809", "__SIZEOF_WINT_T__=2", "__LONG_LONG_WIDTH__=64", "__cpp_initializer_lists=200806", "__FLT32_MAX_EXP__=128", "__SA_IBIT__=16", "__ULLACCUM_MIN__=0.0ULLK", "__BUILTIN_AVR_ROUNDUHK=1", "__BUILTIN_AVR_ROUNDUHR=1", "__cpp_hex_float=201603", "__GXX_ABI_VERSION=1011", "__INT24_MAX__=8388607L", "__UTA_FBIT__=48", "__FLT_MIN_EXP__=(-125)", "__USFRACT_MAX__=0XFFP-8UHR", "__UFRACT_IBIT__=0", "__BUILTIN_AVR_ROUNDFX=1", "__BUILTIN_AVR_ROUNDULK=1", "__BUILTIN_AVR_ROUNDULR=1", "__cpp_lambdas=200907", "__BUILTIN_AVR_COUNTLSLLK=1", "__BUILTIN_AVR_COUNTLSLLR=1", "__BUILTIN_AVR_ROUNDHK=1", "__INT_FAST64_TYPE__=long long int", "__BUILTIN_AVR_ROUNDHR=1", "__DBL_MIN__=double(1.17549435e-38L)", "__BUILTIN_AVR_COUNTLSK=1", "__BUILTIN_AVR_ROUNDLK=1", "__BUILTIN_AVR_COUNTLSR=1", "__BUILTIN_AVR_ROUNDLR=1", "__LACCUM_MIN__=(-0X1P31LK-0X1P31LK)", "__ULLACCUM_FBIT__=48", "__BUILTIN_AVR_LKBITS=1", "__ULLFRACT_EPSILON__=0x1P-64ULLR", "__DEC128_MIN__=1E-6143DL", "__REGISTER_PREFIX__", "__UINT16_MAX__=0xffffU", "__DBL_HAS_DENORM__=1", "__BUILTIN_AVR_ULKBITS=1", "__ACCUM_MIN__=(-0X1P15K-0X1P15K)", "__AVR_ARCH__=2", "__SQ_IBIT__=0", "__FLT32_MIN__=1.17549435e-38F32", "__UINT8_TYPE__=unsigned char", "__BUILTIN_AVR_ROUNDUK=1", "__BUILTIN_AVR_ROUNDUR=1", "__UHA_FBIT__=8", "__NO_INLINE__=1", "__SFRACT_MIN__=(-0.5HR-0.5HR)", "__UTQ_FBIT__=128", "__FLT_MANT_DIG__=24", "__LDBL_DECIMAL_DIG__=9", "__VERSION__=\"7.3.0\"", "__UINT64_C(c)=c ## ULL", "__ULLFRACT_FBIT__=64", "__cpp_unicode_characters=200704", "__FRACT_EPSILON__=0x1P-15R", "__ULACCUM_MIN__=0.0ULK", "__UDA_FBIT__=32", "__cpp_decltype_auto=201304", "__LLACCUM_EPSILON__=0x1P-47LLK", "__GCC_ATOMIC_INT_LOCK_FREE=1", "__FLT32_MANT_DIG__=24", "__BUILTIN_AVR_BITSUHK=1", "__BUILTIN_AVR_BITSUHR=1", "__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__", "__USFRACT_MIN__=0.0UHR", "__BUILTIN_AVR_BITSULK=1", "__ULLACCUM_IBIT__=16", "__BUILTIN_AVR_BITSULR=1", "__UQQ_IBIT__=0", "__BUILTIN_AVR_LLRBITS=1", "__SCHAR_WIDTH__=8", "__BUILTIN_AVR_BITSULLK=1", "__BUILTIN_AVR_BITSULLR=1", "__INT32_C(c)=c ## L", "__DEC64_EPSILON__=1E-15DD", "__ORDER_PDP_ENDIAN__=3412", "__DEC128_MIN_EXP__=(-6142)", "__UHQ_FBIT__=16", "__LLACCUM_FBIT__=47", "__FLT32_MAX_10_EXP__=38", "__BUILTIN_AVR_ROUNDULLK=1", "__BUILTIN_AVR_ROUNDULLR=1", "__INT_FAST32_TYPE__=long int", "__BUILTIN_AVR_HRBITS=1", "__UINT_LEAST16_TYPE__=unsigned int", "__BUILTIN_AVR_UHRBITS=1", "__INT16_MAX__=0x7fff", "__SIZE_TYPE__=unsigned int", "__UINT64_MAX__=0xffffffffffffffffULL", "__UDQ_FBIT__=64", "__INT8_TYPE__=signed char", "__cpp_digit_separators=201309", "__ELF__=1", "__ULFRACT_EPSILON__=0x1P-32ULR", "__LLFRACT_FBIT__=63", "__FLT_RADIX__=2", "__INT_LEAST16_TYPE__=int", "__BUILTIN_AVR_ABSFX=1", "__LDBL_EPSILON__=1.19209290e-7L", "__UINTMAX_C(c)=c ## ULL", "__INT24_MIN__=(-__INT24_MAX__-1)", "__SACCUM_MAX__=0X7FFFP-7HK", "__BUILTIN_AVR_ABSHR=1", "__SIG_ATOMIC_MAX__=0x7f", "__GCC_ATOMIC_WCHAR_T_LOCK_FREE=1", "__cpp_sized_deallocation=201309", "__SIZEOF_PTRDIFF_T__=2", "__AVR=1", "__BUILTIN_AVR_ABSLK=1", "__BUILTIN_AVR_ABSLR=1", "__LACCUM_EPSILON__=0x1P-31LK", "__DEC32_SUBNORMAL_MIN__=0.000001E-95DF", "__INT_FAST16_MAX__=0x7fff", "__UINT_FAST32_MAX__=0xffffffffUL", "__UINT_LEAST64_TYPE__=long long unsigned int", "__USACCUM_MAX__=0XFFFFP-8UHK", "__SFRACT_EPSILON__=0x1P-7HR", "__FLT_HAS_QUIET_NAN__=1", "__FLT_MAX_10_EXP__=38", "__LONG_MAX__=0x7fffffffL", "__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL", "__FLT_HAS_INFINITY__=1", "__cpp_unicode_literals=200710", "__USA_FBIT__=16", "__UINT_FAST16_TYPE__=unsigned int", "__DEC64_MAX__=9.999999999999999E384DD", "__INT_FAST32_WIDTH__=32", "__BUILTIN_AVR_RBITS=1", "__CHAR16_TYPE__=unsigned int", "__PRAGMA_REDEFINE_EXTNAME=1", "__SIZE_WIDTH__=16", "__INT_LEAST16_MAX__=0x7fff", "__DEC64_MANT_DIG__=16", "__UINT_LEAST32_MAX__=0xffffffffUL", "__SACCUM_FBIT__=7", "__FLT32_DENORM_MIN__=1.40129846e-45F32", "__GCC_ATOMIC_LONG_LOCK_FREE=1", "__SIG_ATOMIC_WIDTH__=8", "__INT_LEAST64_TYPE__=long long int", "__INT16_TYPE__=int", "__INT_LEAST8_TYPE__=signed char", "__SQ_FBIT__=31", "__DEC32_MAX_EXP__=97", "__INT_FAST8_MAX__=0x7f", "__INTPTR_MAX__=0x7fff", "__QQ_FBIT__=7", "__cpp_range_based_for=200907", "__UTA_IBIT__=16", "__AVR_ERRATA_SKIP__=1", "__FLT32_MIN_10_EXP__=(-37)", "__LDBL_MANT_DIG__=24", "__SFRACT_FBIT__=7", "__SACCUM_MIN__=(-0X1P7HK-0X1P7HK)", "__DBL_HAS_QUIET_NAN__=1", "__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1)", "AVR=1", "__BUILTIN_AVR_FMULS=1", "__cpp_return_type_deduction=201304", "__INTPTR_TYPE__=int", "__UINT16_TYPE__=unsigned int", "__WCHAR_TYPE__=int", "__SIZEOF_FLOAT__=4", "__AVR__=1", "__BUILTIN_AVR_INSERT_BITS=1", "__USQ_FBIT__=32", "__UINTPTR_MAX__=0xffffU", "__INT_FAST64_WIDTH__=64", "__DEC64_MIN_EXP__=(-382)", "__cpp_decltype=200707", "__FLT32_DECIMAL_DIG__=9", "__INT_FAST64_MAX__=0x7fffffffffffffffLL", "__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1", "__FLT_DIG__=6", "__UINT_FAST64_TYPE__=long long unsigned int", "__BUILTIN_AVR_BITSHK=1", "__BUILTIN_AVR_BITSHR=1", "__INT_MAX__=0x7fff", "__LACCUM_FBIT__=31", "__USACCUM_MIN__=0.0UHK", "__UHA_IBIT__=8", "__INT64_TYPE__=long long int", "__BUILTIN_AVR_BITSLK=1", "__BUILTIN_AVR_BITSLR=1", "__FLT_MAX_EXP__=128", "__UTQ_IBIT__=0", "__DBL_MANT_DIG__=24", "__cpp_inheriting_constructors=201511", "__BUILTIN_AVR_ULLKBITS=1", "__INT_LEAST64_MAX__=0x7fffffffffffffffLL", "__DEC64_MIN__=1E-383DD", "__WINT_TYPE__=int", "__UINT_LEAST32_TYPE__=long unsigned int", "__SIZEOF_SHORT__=2", "__ULLFRACT_IBIT__=0", "__LDBL_MIN_EXP__=(-125)", "__UDA_IBIT__=32", "__WINT_WIDTH__=16", "__INT_LEAST8_MAX__=0x7f", "__LFRACT_FBIT__=31", "__LDBL_MAX_10_EXP__=38", "__ATOMIC_RELAXED=0", "__DBL_EPSILON__=double(1.19209290e-7L)", "__BUILTIN_AVR_BITSUK=1", "__BUILTIN_AVR_BITSUR=1", "__UINT8_C(c)=c", "__INT_LEAST32_TYPE__=long int", "__BUILTIN_AVR_URBITS=1", "__SIZEOF_WCHAR_T__=2", "__LLFRACT_MAX__=0X7FFFFFFFFFFFFFFFP-63LLR", "__TQ_FBIT__=127", "__INT_FAST8_TYPE__=signed char", "__ULLACCUM_EPSILON__=0x1P-48ULLK", "__BUILTIN_AVR_ROUNDK=1", "__BUILTIN_AVR_ROUNDR=1", "__UHQ_IBIT__=0", "__LLACCUM_IBIT__=16", "__FLT32_EPSILON__=1.19209290e-7F32", "__DBL_DECIMAL_DIG__=9", "__STDC_UTF_32__=1", "__INT_FAST8_WIDTH__=8", "__DEC_EVAL_METHOD__=2", "__TA_FBIT__=47", "__UDQ_IBIT__=0", "__ORDER_BIG_ENDIAN__=4321", "__cpp_runtime_arrays=198712", "__WITH_AVRLIBC__=1", "__UINT64_TYPE__=long long unsigned int", "__ACCUM_EPSILON__=0x1P-15K", "__UINT32_C(c)=c ## UL", "__BUILTIN_AVR_COUNTLSUHK=1", "__INTMAX_MAX__=0x7fffffffffffffffLL", "__cpp_alias_templates=200704", "__BUILTIN_AVR_COUNTLSUHR=1", "__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__", "__FLT_DENORM_MIN__=1.40129846e-45F", "__LLFRACT_IBIT__=0", "__INT8_MAX__=0x7f", "__LONG_WIDTH__=32", "__UINT_FAST32_TYPE__=long unsigned int", "__CHAR32_TYPE__=long unsigned int", "__BUILTIN_AVR_COUNTLSULK=1", "__BUILTIN_AVR_COUNTLSULR=1", "__FLT_MAX__=3.40282347e+38F", "__cpp_constexpr=201304", "__USACCUM_FBIT__=8", "__BUILTIN_AVR_COUNTLSFX=1", "__INT32_TYPE__=long int", "__SIZEOF_DOUBLE__=4", "__FLT_MIN_10_EXP__=(-37)", "__UFRACT_EPSILON__=0x1P-16UR", "__INT_LEAST32_WIDTH__=32", "__BUILTIN_AVR_COUNTLSHK=1", "__BUILTIN_AVR_COUNTLSHR=1", "__INTMAX_TYPE__=long long int", "__BUILTIN_AVR_ABSLLK=1", "__BUILTIN_AVR_ABSLLR=1", "__DEC128_MAX_EXP__=6145", "__AVR_HAVE_16BIT_SP__=1", "__ATOMIC_CONSUME=1", "__GNUC_MINOR__=3", "__INT_FAST16_WIDTH__=16", "__UINTMAX_MAX__=0xffffffffffffffffULL", "__DEC32_MANT_DIG__=7", "__HA_FBIT__=7", "__BUILTIN_AVR_COUNTLSLK=1", "__BUILTIN_AVR_COUNTLSLR=1", "__BUILTIN_AVR_CLI=1", "__DBL_MAX_10_EXP__=38", "__LDBL_DENORM_MIN__=1.40129846e-45L", "__INT16_C(c)=c", "__cpp_generic_lambdas=201304", "__STDC__=1", "__PTRDIFF_TYPE__=int", "__LLFRACT_MIN__=(-0.5LLR-0.5LLR)", "__BUILTIN_AVR_LRBITS=1", "__ATOMIC_SEQ_CST=5", "__DA_FBIT__=31", "__UINT32_TYPE__=long unsigned int", "__BUILTIN_AVR_ROUNDLLK=1", "__UINTPTR_TYPE__=unsigned int", "__BUILTIN_AVR_ROUNDLLR=1", "__USA_IBIT__=16", "__BUILTIN_AVR_ULRBITS=1", "__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD", "__DEC128_MANT_DIG__=34", "__LDBL_MIN_10_EXP__=(-37)", "__BUILTIN_AVR_COUNTLSUK=1", "__BUILTIN_AVR_COUNTLSUR=1", "__SIZEOF_LONG_LONG__=8", "__ULACCUM_EPSILON__=0x1P-32ULK", "__cpp_user_defined_literals=200809", "__SACCUM_IBIT__=8", "__GCC_ATOMIC_LLONG_LOCK_FREE=1", "__LDBL_DIG__=6", "__FLT_DECIMAL_DIG__=9", "__UINT_FAST16_MAX__=0xffffU", "__GCC_ATOMIC_SHORT_LOCK_FREE=1", "__BUILTIN_AVR_ABSHK=1", "__BUILTIN_AVR_FLASH_SEGMENT=1", "__INT_LEAST64_WIDTH__=64", "__ULLFRACT_MAX__=0XFFFFFFFFFFFFFFFFP-64ULLR", "__UINT_FAST8_TYPE__=unsigned char", "__USFRACT_EPSILON__=0x1P-8UHR", "__ULACCUM_FBIT__=32", "__QQ_IBIT__=0", "__cpp_init_captures=201304", "__ATOMIC_ACQ_REL=4", "__ATOMIC_RELEASE=3", "__BUILTIN_AVR_FMUL=1", "USBCON" ]

@krystianzun
Copy link

Despite having "USBCON" automatically added to c_cpp_properties.json I'm still having the same issue as some people above.

Any suggestions on how to tackle this?

Screenshot 2022-07-21 at 20 44 59

Screenshot 2022-07-21 at 20 45 05

AnnaStudentKDGIOT added a commit to AnnaStudentKDGIOT/PortofolioBuild1 that referenced this issue Oct 12, 2023
i needed to update this because of a standard issue showing up in my intellisense that serial was undefined

on github the issue was documented

microsoft/vscode-arduino#808

i just used this to solve it

for furth reference please refer to the link
@chriscummings
Copy link

Problem persists on m1 mac with vs code-1.85.2 and arduino plugin-0.6.0.

@andresmoschini
Copy link

Problem persists on m1 mac with vs code-1.85.2 and arduino plugin-0.6.0.

+1

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

No branches or pull requests