https://github.com/tvlad1234/bmp085-cube
BMP085 Library for STM32Cube
https://github.com/tvlad1234/bmp085-cube
bmp085 bmp180 pressure-sensor sensor stm32 stm32cube temperature-sensor
Last synced: 7 months ago
JSON representation
BMP085 Library for STM32Cube
- Host: GitHub
- URL: https://github.com/tvlad1234/bmp085-cube
- Owner: tvlad1234
- Created: 2021-08-30T18:53:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T14:01:07.000Z (about 4 years ago)
- Last Synced: 2024-12-27T20:36:48.509Z (over 1 year ago)
- Topics: bmp085, bmp180, pressure-sensor, sensor, stm32, stm32cube, temperature-sensor
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BMP085-Cube
*BMP085/BMP180 Library for STM32Cube*\
Based on [Adafruit-BMP085-Library](https://github.com/adafruit/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_.