Download en installeer cppcheck, en gebruik deze command line:
cppcheck --enable=style *.ino
Download en installeer cppcheck, en gebruik deze command line:
cppcheck --enable=style *.ino
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.
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.
Met alle de meeste bugs geplet is het versie nummer nu eindelijk 1.0.0.
Geile specs, maar veel meer dan een persbericht en een ietwat vage foto is er niet over te vinden.
Owja, wel een repo op GitHub met voornamelijk PR blurb en weinig code of technische info.
En een wiki.
Espressif got new competitor RDA5981 dedicated for IoT and audio apps
Om een bestand als variable in C of C++ te gebruiken kun je de tool xxd
gebruiken.
xxd
is standaard aanwezig op de meeste linux Mint machines.
cellie@cellie-Mint-64 ~ $ echo Hello World\! > temp cellie@cellie-Mint-64 ~ $ xxd -i temp unsigned char temp[] = { 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21, 0x0a }; unsigned int temp_len = 13;
Om de variable niet in RAM maar in ROM terecht te laten komen verander je de code als volgt:
const char temp[] = { 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21, 0x0a }; const int temp_len = 13;
Natuurlijk niet zelf bedacht maar gevonden op stackoverflow.