tvlad1234 / BMP085-Cube

BMP085 Library for STM32Cube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

BMP085 Library for STM32Cube


Languages

Language:C 100.0%