Skip to content

tvlad1234/BMP085-Cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages