I have 2 bytes:
byte b1 = 0x5a; byte b2 = 0x25;
How do I get 0x5a25 ?
0x5a25
Using bit operators: (b1 << 8) | b2 or just as effective (b1 << 8) + b2
(b1 << 8) | b2
(b1 << 8) + b2