SHARE
TWEET

Untitled

a guest Dec 20th, 2015 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. import smbus
  4.  
  5. bus = smbus.SMBus(1)
  6. address = 0x39
  7.  
  8. dataLow = bus.read_byte_data(address, 0x8C)
  9. dataHigh = bus.read_byte_data(address, 0x8D)
  10.  
  11. output = (dataHigh * 256 + dataLow)
  12.  
  13. print output
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top