Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from periphery import I2C
- i2c = I2C("/dev/i2c-0")
- msgs = [I2C.Message([0x03], flags=I2C._I2C_M_IGNORE_NAK)]
- i2c.transfer(0x24, msgs)
- msgs = [I2C.Message([0x67, 0x63, 0x63, 0x47], flags=I2C._I2C_M_IGNORE_NAK)]
- i2c.transfer(0x34, msgs)
- i2c.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement