Created
October 21, 2021 15:24
-
-
Save EndruK/d98a86aa50d2f3a135e643c7887eb0de to your computer and use it in GitHub Desktop.
VS Code cpp properties for compiling Arduino scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"arduino.path": "${HOME}/.arduino15/packages/arduino", | |
"arduino.avr.include.path": "${env:arduino.path}/hardware/avr/1.8.3", | |
"arduino.avr.compiler.path": "${env:arduino.path}/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++", | |
"arduino.libraries.path": "${HOME}/Arduino/libraries", | |
"dummy-last-line": "To allow the second to last line (e.g. the real last line) to always end with a comma" | |
}, | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${env:arduino.avr.include.path}/cores/arduino", | |
"${env:arduino.avr.include.path}/variants/standard", | |
"${env:arduino.avr.include.path}/libraries/Wire/src", | |
"${env:arduino.avr.include.path}/libraries/SPI/src", | |
"${env:arduino.avr.include.path}/libraries/SoftwareSerial/src", | |
"${env:arduino.libraries.path}/U8g2/src", | |
"${env:arduino.libraries.path}/Adafruit_SSD1306", | |
"${env:arduino.libraries.path}/Adafruit_GFX_Library", | |
"${workspaceFolder}/**" | |
], | |
"browse": { | |
"path": ["${workspaceFolder}"], | |
"limitSymbolsToIncludedHeaders": true, | |
"databaseFilename": "" | |
}, | |
"defines": [ | |
"UBRRH", | |
"USBCON", | |
"ARDUINO=10813" | |
], | |
//"compilerPath": "/usr/bin/clang", | |
//"compilerPath": "${HOME}/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -std=gnu++11 --mmcu=atmega328p", | |
"compilerPath": "${HOME}/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++", | |
"cStandard": "c17", | |
"cppStandard": "c++14", | |
"intelliSenseMode": "linux-clang-x64" | |
} | |
], | |
"version": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment