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.
Dependencies: mbed MPU6050_2 SDFileSystem3 HCSR04_2
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 correct environmental data using Boshe BME280 device
BME280 is an environmental sensor
Definition at line 39 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: 0x76) 
- Version:
- 1.0
- Date:
- 06-April-2015
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 18 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: 0x76) 
Definition at line 28 of file BMP280.cpp.
| ~BMP280 | ( | ) |  [virtual] | 
Destructor of BME280.
Definition at line 38 of file BMP280.cpp.
Member Function Documentation
| float getPressure | ( | void | ) | 
Read the current pressure value (hectopascal)from BME280 sensor.
Definition at line 129 of file BMP280.cpp.
| float getTemperature | ( | void | ) | 
Read the current temperature value (degree Celsius) from BME280 sensor.
Definition at line 104 of file BMP280.cpp.
| void initialize | ( | void | ) | 
Initializa BME280 sensor.
Configure sensor setting and read parameters for calibration
Definition at line 44 of file BMP280.cpp.
Generated on Fri Jul 22 2022 15:45:18 by
 1.7.2
 1.7.2