Skip to main content
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
Edgar Bonet's user avatar
  • 45.2k
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 ...
per1234's user avatar
  • 4,298
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 ...
Majenko's user avatar
  • 106k
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 ...
Juraj's user avatar
  • 18.3k
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... #####.
user14066778's user avatar
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 ...
Ian's user avatar
  • 181

Only top scored, non community-wiki answers of a minimum length are eligible