Advertisement
Guest User

Untitled

a guest
Jun 16th, 2021
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. from periphery import I2C
  2. i2c = I2C("/dev/i2c-0")
  3. msgs = [I2C.Message([0x03], flags=I2C._I2C_M_IGNORE_NAK)]
  4. i2c.transfer(0x24, msgs)
  5. msgs = [I2C.Message([0x67, 0x63, 0x63, 0x47], flags=I2C._I2C_M_IGNORE_NAK)]
  6. i2c.transfer(0x34, msgs)
  7. i2c.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement