Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks Majenko. I have edited my post to show the result in ascii, and it is strange... Commented Feb 26, 2018 at 20:33
  • 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. Commented Feb 26, 2018 at 20:34
  • Serial.print((0x123456 >> 16) & 0xFF,HEX); Commented Feb 26, 2018 at 20:35