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.

7
  • Does I can get 257 as a output too? With that logic? Commented May 21, 2019 at 14:44
  • 257 decimal = 0x0101. highbyte = 0x01, lowbyte = 0x01. x01 << 8 + 0x01 = 257 decimal, so sure. Commented May 21, 2019 at 14:57
  • Yes, you can use this method to send any value from 0 to 65535 (2^16 - 1). If you need larger values than that you can send an unsigned long using 4 bytes. That will give you a huge range of values. (0 to 2^32-1, which is over 4 billion.) Commented May 21, 2019 at 16:47
  • Oh cool! Ty ((: Commented May 22, 2019 at 1:22
  • What are upperbyte and lowerByte ? Int type data type? Commented May 22, 2019 at 1:52