Advertisement
Guest User

Untitled

a guest
Dec 20th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. orangepi@Orangepi:~$ sudo i2cset 0 0x65 0x01 0x96
  2. WARNING! This program can confuse your I2C bus, cause data loss and worse!
  3. I will write to device file /dev/i2c-0, chip address 0x65, data address
  4. 0x01, data 0x96, mode byte.
  5. Continue? [Y/n] y
  6. orangepi@Orangepi:~$ sudo i2cget 0 0x65 0x01
  7. WARNING! This program can confuse your I2C bus, cause data loss and worse!
  8. I will read from device file /dev/i2c-0, chip address 0x65, data address
  9. 0x01, using read byte data.
  10. Continue? [Y/n] y
  11. 0x96
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement