adafruit / Adafruit_BME280_Library

Arduino Library for BME280 sensors
Other
336 stars 305 forks source link

Added sea level pressure calculation helper function #11

Closed mozzbozz closed 8 years ago

mozzbozz commented 8 years ago

Function for calculating the sea level pressure from the local pressure and altitude added. I've taken it from the Adafruit BMP085 Unified Library. I think that this library should also be able to do this calculation as the only difference of the two sensors is that the BME280 can additionally measure humidity.

mozzbozz commented 8 years ago

Wow, that was fast! About 1 minute might be a new record ;) Thanks!

mmehr2 commented 8 years ago

I copied this into the BMP library for you. See PR#8 to that library.