I am programming Arduino and I am trying to Serial.print() bytes in hexadecimal format \"the my way\" (keep reading for more information).
Serial.print()
That is, by u
Simple brute force method, is to write a routine as:
void p(char X) { if (X < 16) {Serial.print("0");} Serial.println(X, HEX); }
And in the main code:
p(byte1); // etc.