Your Arduino code from previous post above has errors.
Working (simplified) version:
//unsigned char xy[2]; //ok
//byte xy[2]; //ok
uint8_t xy[2]; //ok
//signed char xy[2]; // Error!
void setup()
{
Serial.begin(9600);
}
void loop()
{
xy[0] = 255;
xy[1] = 128;
Serial.write(xy, 2);
delay(1000);
}
Reference:
- Serial.write() - Arduino Reference
- Arduino: Difference in "Byte" VS "uint8_t" VS "unsigned char" - Oscar Liang
:)