Skip to content

Instantly share code, notes, and snippets.

@whatnick
Created July 10, 2016 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save whatnick/e1f7f8833a8be1f02ace361a685cb54f to your computer and use it in GitHub Desktop.
Save whatnick/e1f7f8833a8be1f02ace361a685cb54f to your computer and use it in GitHub Desktop.
Test LM75 temperature sensor
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