int32_t x = -1000;
Serial.write((uint8_t*)&x, sizeof(x));
Something like that?
Keep in mind that Arduino is Little Endian, so the least significant bytes will be sent first (which seems to be what you want.
Pieter
int32_t x = -1000;
Serial.write((uint8_t*)&x, sizeof(x));
Something like that?
Keep in mind that Arduino is Little Endian, so the least significant bytes will be sent first (which seems to be what you want.
Pieter