arduino2/ads1115/ads1115_buffer_etc.txt
2020-11-06 13:17:55 +01:00

19 lines
521 B
Plaintext

union dual
{
char charBuff[34];
int intBuff[17];
}
dual myData;
Using this, you can write 34 characters to charBuff[] as characters,
and then when want to ship them out to the tag,
just write the 17 integers out from intBuff.
The greatest typecasting technique ever invented.
refer to them in the program as myData.charBuff, and myData.intBuff.
http://www.netzmafia.de/skripten/hardware/RasPi/Projekt-ADS1115/index.html
https://github.com/tlobbri/ArDAQ