Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import smbus
- bus = smbus.SMBus(1)
- address = 0x39
- dataLow = bus.read_byte_data(address, 0x8C)
- dataHigh = bus.read_byte_data(address, 0x8D)
- output = (dataHigh * 256 + dataLow)
- print output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement