BMP085/BMP180 Library for STM32Cube
Based on Adafruit-BMP085-Library
Before reading the sensor, it must be initialized with bmpBegin.
bmpBegin takes two parameters: sensor mode and a pointer to the I2C Handler and returns 1 if connection was successful.
Example: bmpBegin(BMP085_STANDARD, &hi2c1);
Other usable modes are BMP085_ULTRALOWPOWER, BMP085_HIGHRES, BMP085_ULTRAHIGHRES.
readBMPTemperature() returns the temperature in °C as float.
readBMPPressure() returns the atmospheric pressure in Pascals (Pa) as uint32_t.