Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion hardware/arduino/zuno/libraries/ZUNO_BMP280/ZUNO_BMP280.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,13 @@ float ZUNO_BMP280::readTemperature(void)
return readTemperatureC100() / 100.0;
}


void ZUNO_BMP280::setSensorMode(sensor_mode mode)
{
uint8_t controlValue = aux_read8(BME280_REGISTER_CONTROL);
controlValue &= 0xFC;
controlValue |= mode;
aux_write8(BME280_REGISTER_CONTROL, controlValue);
}

/*********************************************************************/

Expand Down
1 change: 1 addition & 0 deletions hardware/arduino/zuno/libraries/ZUNO_BMP280/ZUNO_BMP280.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class ZUNO_BMP280 {
int32_t readPressureHgMM10(void);
int16_t readHumidityH10(void);
float readHumidity(void);
void setSensorMode(sensor_mode mode);
private:
uint8_t addr;

Expand Down