Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <Wire.h>
  2.  
  3. void setup()
  4. {
  5.  
  6. Wire.begin(); // join i2c bus
  7.  
  8. Wire.beginTransmission(44); // transmit to device #44 (0x2c)
  9. // device address is specified in datasheet
  10.  
  11. Wire.write(0xA); // sends value byte
  12. Wire.write(0xA); // sends value byte
  13. Wire.write(0xA); // sends value byte
  14.  
  15. Wire.endTransmission(); // stop transmitting
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement