19 lines
521 B
Plaintext
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
|