- Close the Arduino IDE. (Otherwise your edits will be overwritten)
- Open
preferences.txt
. (Found in the folder~/.arduino15
on Linux Mint) - Add a new value
build.path
that points to your preferred folder:build.path=/dev/shm/Arduino
- Save
preferences.txt
. - Restart the IDE. Compiler output is now saved in the folder you just added.
Remember thatdev/shm
is gone after a reboot!
Tag Archives: arduino
Drop in replacement for ESPASyncWebServer
The dev
branch of https://github.com/ul-gh/ESPAsyncWebServer solves a lot of issues that are a pita in the me-no-dev version.
See #876.
Go directly to the dev branch: https://github.com/ul-gh/ESPAsyncWebServer/tree/dev
Set Arduino IDE indent to 4 spaces.
Does that really need its own article on a vanity blog?
Of course, AS IT DOES NOT WORK FOR OVER 4 YEARS NOW.
A solution, I mean a very ugly band-aid is to change the Arduino IDE formatting config file by hand.
EVERY FUCKING TIME YOU UPGRADE YOUR IDE.
The Auto Format indentation is set in {Arduino IDE installation folder}/lib/formatter.conf
Change the indent=spaces=2
entry to your liking.
And chill out man.
Error check Arduino sources met ‘cppcheck’.
Download en installeer cppcheck, en gebruik deze command line:
cppcheck --enable=style *.ino
Add git tag and version number to an Arduino sketch.
The problem:
Version control and tracking is hard.
For sure in the Arduino IDE, which invites to rapid prototyping and has no built-in version tracking or version control mechanism.
A possible solution:
To make it somewhat more practical and less error prone I made some scripts to assist this process.
It works if you already use or start usingĀ git for your version control.
Using these scripts is as easy as adding them to your sketch folder and adding
#include "gitTagVersion.h" ... Serial.println( sketchVersion );
to your Arduino sketch.
That is all that is needed.
The output in the example above will be something like v1.0.0-3-gab3fb04
.
That breaks down to tag v1.0.0, 3 commits since that tag, at commit ab3fb04.
How to install and use?
Aquacontrol32 1.0.0.
Met alle de meeste bugs geplet is het versie nummer nu eindelijk 1.0.0.