Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 352 by
BMP280 Class Reference
BME280 class. More...
#include <BMP280.h>
Public Member Functions | |
BMP280 (PinName sda, PinName sck, char slave_adr=DEFAULT_SLAVE_ADDRESS) | |
Create a BME280 instance which is connected to specified I2C pins with specified address. | |
BMP280 (I2C &i2c_obj, char slave_adr=DEFAULT_SLAVE_ADDRESS) | |
Create a BME280 instance which is connected to specified I2C pins with specified address. | |
virtual | ~BMP280 () |
Destructor of BME280. | |
void | initialize (void) |
Initializa BME280 sensor. | |
float | getTemperature (void) |
Read the current temperature value (degree Celsius) from BME280 sensor. | |
float | getPressure (void) |
Read the current pressure value (hectopascal)from BME280 sensor. |
Detailed Description
BME280 class.
BME280: A library to read environmental data using Bosch BME280 device Readds temperature and pressure
BME280 is an environmental sensor
Definition at line 42 of file BMP280.h.
Constructor & Destructor Documentation
BMP280 | ( | PinName | sda, |
PinName | scl, | ||
char | slave_adr = DEFAULT_SLAVE_ADDRESS |
||
) |
Create a BME280 instance which is connected to specified I2C pins with specified address.
BMP280 Combined humidity and pressure sensor library.
- Parameters:
-
sda I2C-bus SDA pin scl I2C-bus SCL pin slave_adr (option) I2C-bus address (default: 0x77)
- Version:
- 1.0
- Date:
- 06-April-2015
bugfixing by charly
Library for "BMP280 temperature, humidity and pressure sensor module" from Switch Science https://www.switch-science.com/catalog/2236/
For more information about the BMP280: http://ae-bst.resource.bosch.com/media/products/dokumente/BMP280/BST-BMP280_DS001-10.pdf
Definition at line 20 of file BMP280.cpp.
BMP280 | ( | I2C & | i2c_obj, |
char | slave_adr = DEFAULT_SLAVE_ADDRESS |
||
) |
Create a BME280 instance which is connected to specified I2C pins with specified address.
- Parameters:
-
i2c_obj I2C object (instance) slave_adr (option) I2C-bus address (default: 0x77)
Definition at line 30 of file BMP280.cpp.
~BMP280 | ( | ) | [virtual] |
Destructor of BME280.
Definition at line 40 of file BMP280.cpp.
Member Function Documentation
float getPressure | ( | void | ) |
Read the current pressure value (hectopascal)from BME280 sensor.
Definition at line 135 of file BMP280.cpp.
float getTemperature | ( | void | ) |
Read the current temperature value (degree Celsius) from BME280 sensor.
Definition at line 108 of file BMP280.cpp.
void initialize | ( | void | ) |
Initializa BME280 sensor.
Configure sensor setting and read parameters for calibration
Definition at line 46 of file BMP280.cpp.
Generated on Tue Jul 12 2022 21:51:19 by
