8
votes
Accepted
How can I have code in a project that won't compile for Arduino?
I would use conditional compilation, like this:
#ifndef(ARDUINO)
// Non-Arduino code.
#endif
2
votes
Setting the Libraries Path
I'll offer a couple of options:
Dedicated Sketchbook
Arduino IDE discovers the set of libraries that are installed under the libraries subfolder of the Arduino sketchbook folder.
Although you can't ...
2
votes
Accepted
How to rebuild Arduino core for ESP8266
There are four variants of LwIP bundled with the ESP8266 core:
V1.4 (Compile from source)
V1.4 (Precompiled)
V2 Lower Memory
V2 Higher Bandwidth
By default (for most boards) one of the V2 variants is ...
1
vote
Accepted
avr_g++ compiler error: expected primary-expression before '.' token (C code in .ino)
.ino is compiled as C++. your test is C code. put the C code in a .c file and the declaration in .h file and include the .h in .ino
I created a test.c, copied the content of your main.c into it and ...
1
vote
Reason for warning "avr:build doesn't define a 'build.board' preference" when build.board is explicitly set in boards.txt?
In my case: I erase the board configurations that was with problem in the file boards.txt.
These configurations appears between #### ... board configurations... #####.
1
vote
Arduino command line vs. Arduino builder
I've written a new option for Arduino CI/unit testing and put together a decent size writeup about it as an answer to this related question.
I ended up using the Arduino command line instead of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
build × 32arduino-ide × 7
compile × 6
c++ × 4
ide × 4
library × 3
visualstudio × 3
arduino-uno × 2
esp8266 × 2
uploading × 2
command-line × 2
arduino-mega × 1
programming × 1
led × 1
c × 1
avr × 1
avrdude × 1
memory-usage × 1
compilation-errors × 1
class × 1
neopixel × 1
software × 1
core-libraries × 1
avr-toolchain × 1
node.js × 1