Shift

From ElectroDragon
Revision as of 12:38, 16 February 2020 by Chao (talk | contribs) (Created page with " Wire.requestFrom(_addr, (uint8_t)3);// send data n-bytes read ret = Wire.read(); // receive DATA ret |= Wire.read() << 8; // receive DATA category: C")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 Wire.requestFrom(_addr, (uint8_t)3);// send data n-bytes read
 ret = Wire.read(); // receive DATA
 ret |= Wire.read() << 8; // receive DATA