mySerial.write( (uint8_t) 0x00 );
mySerial.write( (byte) 0x00 );
const uint8_t ZeroByte = 0x00;mySerial.write( ZeroByte );
Why is this only a problem for the 0x00 , and not a problem for the 0x55 ?
And wouldn't it be easier to put this sequence into some kind of string or array or even a loop, rather than waste code space with 5 calls to the same function ?
Yes, why do 0x55 & 0xFF get interpreted as bytes, while 0x00 gets interpreted as an int?
creating a variable ... const byte ZeroByte = 0; ... and then using that seems simple enough:
Can somebody help?