bmp180: add ReadAltitude() function copied from BMP280 driver

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-01-18 21:26:42 +01:00
committed by Ron Evans
parent 89f113c0ca
commit e6cde8f7ae
3 changed files with 23 additions and 0 deletions
+4
View File
@@ -28,3 +28,7 @@ const (
// ULTRAHIGHRESOLUTION is the highest oversampling mode of the pressure measurement.
ULTRAHIGHRESOLUTION
)
const (
SEALEVEL_PRESSURE float32 = 1013.25 // in hPa
)