Mine ( in my world famous aquacontrol hardware & software) will last about 60 years…
Following is quoted verbatim fromĀ https://github.com/pellepl/spiffs/wiki/FAQ#how-long-will-my-spi-flash-live
Continue reading
Mine ( in my world famous aquacontrol hardware & software) will last about 60 years…
Following is quoted verbatim fromĀ https://github.com/pellepl/spiffs/wiki/FAQ#how-long-will-my-spi-flash-live
Continue reading
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.