Difference between revisions of "BitShift"

From ElectroDragon Wiki
 
(No difference)

Latest revision as of 01:58, 28 May 2021

0x50      = 1010 000
0x50 << 1 = 1010 0000 = A0
(I2C_DEVADDR<<1)|0x01 = A1 // move bit and OR operation
  • (byte) (0x0301 >> 8) = 0x03