Guest User

Untitled

a guest
Apr 30th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //Please note that the example is not complete because Wire has to be loaded and initialized
  2. byte address = 0x4F;
  3. byte read1;
  4. byte read2;
  5. Wire.beginTransmission(address);
  6. Wire.write(0x00);
  7. Wire.requestFrom(int(address), 2);
  8. if(Wire.available()) {
  9. read1 = Wire.read();
  10. read2 = Wire.read();
  11. }
Add Comment
Please, Sign In to add comment