Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 677 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 677 Bytes

BMP085-Cube

BMP085/BMP180 Library for STM32Cube
Based on Adafruit-BMP085-Library

Initializing the sensor

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.

Reading the sensor

readBMPTemperature() returns the temperature in °C as float. readBMPPressure() returns the atmospheric pressure in Pascals (Pa) as uint32_t.