Skip to content

Instantly share code, notes, and snippets.

@KitWallace
Created September 16, 2012 17:06
Show Gist options
  • Save KitWallace/3733255 to your computer and use it in GitHub Desktop.
Save KitWallace/3733255 to your computer and use it in GitHub Desktop.
the revised baroReader now that the BMP085 chip is available
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