Library for Bosch BMP280 temperature and pressure sensor
Dependents: ELEC350-LCD-DEMO ELEC350-CWTEMPLATE-2017 ELEC351_v1 ELEC350-CWTEMPLATE-2017 ... more
Fork of BMP280 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 Mon Jul 18 2022 12:12:25 by
1.7.2
