Timeline for Array, hexadecimal and serial write
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 26, 2018 at 20:35 | comment | added | Majenko |
Serial.print((0x123456 >> 16) & 0xFF,HEX);
|
|
Feb 26, 2018 at 20:34 | comment | added | Majenko |
Since you have switched from write to print it can now print the entire number every time. If you want to print it you should also mask the value with & 0xFF .
|
|
Feb 26, 2018 at 20:33 | comment | added | Jibeji | Thanks Majenko. I have edited my post to show the result in ascii, and it is strange... | |
Feb 26, 2018 at 18:18 | history | answered | Majenko | CC BY-SA 3.0 |