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 BME280 by
BME280 Class Reference
#include <BME280.h>
Public Member Functions | |
| BME280 (PinName sda, PinName sck, char slave_adr=DEFAULT_SLAVE_ADDRESS) | |
| Create a BME280 instance which is connected to specified I2C pins with specified address. | |
| BME280 (I2C &i2c_obj, char slave_adr=DEFAULT_SLAVE_ADDRESS) | |
| Create a BME280 instance which is connected to specified I2C pins with specified address. | |
| virtual | ~BME280 () |
| 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. | |
| float | getHumidity (void) |
| Read the current humidity value (humidity %) 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 BME280.h.
Constructor & Destructor Documentation
| BME280 | ( | PinName | sda, |
| PinName | scl, | ||
| char | slave_adr = DEFAULT_SLAVE_ADDRESS |
||
| ) |
Create a BME280 instance which is connected to specified I2C pins with specified address.
BME280 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 "BME280 temperature, humidity and pressure sensor module" from Switch Science https://www.switch-science.com/catalog/2236/
For more information about the BME280: http://ae-bst.resource.bosch.com/media/products/dokumente/bme280/BST-BME280_DS001-10.pdf
Definition at line 18 of file BME280.cpp.
| BME280 | ( | 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 29 of file BME280.cpp.
| ~BME280 | ( | ) | [virtual] |
Destructor of BME280.
Definition at line 39 of file BME280.cpp.
Member Function Documentation
| float getHumidity | ( | void | ) |
Read the current humidity value (humidity %) from BME280 sensor.
Definition at line 173 of file BME280.cpp.
| float getPressure | ( | void | ) |
Read the current pressure value (hectopascal)from BME280 sensor.
Definition at line 132 of file BME280.cpp.
| float getTemperature | ( | void | ) |
Read the current temperature value (degree Celsius) from BME280 sensor.
Definition at line 104 of file BME280.cpp.
| void initialize | ( | void | ) |
Initializa BME280 sensor.
Configure sensor setting and read parameters for calibration
Definition at line 45 of file BME280.cpp.
Generated on Mon Jul 18 2022 11:51:11 by
1.7.2
