adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors
253 stars 186 forks source link

seaLevel function and SI_UNIT selector added #2

Closed kl-git closed 5 years ago

kl-git commented 8 years ago

Hi there,

I am using the Adafruit library for my weatherstation project. The library is missing a basic function "seaLevel" which converts the barometric pressure at an altitude to sea level.

Another change I would like to propose: change the basis SI unit of the BMP280 (which currently defaults to [Pa]), which is not the default in Europe. Thus it would be nice to init the BMP280 object with a different SI unit for barometric pressure: [mbar], [hPa] or [Pa]. [Pa] is the default, thus no compatibility issues for existing sketches.

Hope you like this,

Klaus

hoffmannjan commented 5 years ago

added in #26