#include <BME280.h>
Public Member Functions | |
MyBME280 (MyOptions &options, MyData &data, int pin, uint8_t addr) | |
bool | begin () |
bool | readValues () |
Protected Attributes | |
MyOptions & | myOptions |
Reference to global options. | |
MyData & | myData |
Reference to global data. | |
int | pinGrnd |
Ground-Pin connection to switch on the BME280 module. | |
uint8_t | portAddr |
Port address of the bme280. | |
Adafruit_BME280 | bme280 |
Adafruit BME280 helper interface. | |
Communication with the BME280 modul to read temperature, humidity and pressure
Constructor
Definition at line 52 of file BME280.h.
bool MyBME280::begin | ( | ) |
Switch off the module at startup to safe power.
Definition at line 61 of file BME280.h.
References pinGrnd.
Referenced by setup().
bool MyBME280::readValues | ( | ) |
Switch on the modul, read the values and switch off the modul to save power. Do this only every bme280CheckIntervalSec
Definition at line 73 of file BME280.h.
References BARO_CORR_HPA, bme280, MyOptions::bme280CheckIntervalSec, MyData::humidity, MyData::RtcData::lastBme280ReadSec, myData, MyDbg(), myOptions, pinGrnd, portAddr, MyData::pressure, MyData::rtcData, secondsElapsedAndUpdate(), TEMP_CORR_DEGREE, and MyData::temperature.
Referenced by loop().