Created
July 10, 2016 14:22
-
-
Save whatnick/e1f7f8833a8be1f02ace361a685cb54f to your computer and use it in GitHub Desktop.
Test LM75 temperature sensor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from tentacle_pi.LM75 import LM75 | |
lm = LM75(0x48,"/dev/i2c-1") | |
temperature = lm.temperature() | |
print "temperature: %0.2f" % temperature | |
time.sleep(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment