Created
September 16, 2012 17:06
-
-
Save KitWallace/3733255 to your computer and use it in GitHub Desktop.
the revised baroReader now that the BMP085 chip is available
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
def baroReader(interval_secs,altitude) : | |
baro = BMP085() | |
while True : | |
slbaro = round(baro.readSeaLevelPressure(altitude) / 100 ,2) | |
yield(slbaro) | |
time.sleep(interval_secs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment