Created
April 8, 2015 16:57
-
-
Save navin-bhaskar/3653acce435f6a79c728 to your computer and use it in GitHub Desktop.
Temperature sensor using upm
This file contains hidden or 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 pyupm_grove # Get the UPM library | |
| # Create the temperature sensor object | |
| temp = pyupm_grove.GroveTemp(1) | |
| # Use "value" method on it to get the temperature | |
| print "Temperature now is " + str(temp.value()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment