1. The masks and the position of the configuration bits of the "config" register (0xF5) are set incorrectly;

2. BME280 does not support the parameter "t standby" = 1 ms. At least 0.5mS.

https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280-DS002.pdf

Table 22: Register 0xF4 "ctrl_meas"

Table 27: t_sb settings
This commit is contained in:
Tuteyshy 2019-02-05 00:55:54 +03:00
parent a50e719ded
commit 86f5b6d469

View File

@ -186,11 +186,11 @@
#define BME280_CTRL_TEMP_MSK UINT8_C(0xE0)
#define BME280_CTRL_TEMP_POS UINT8_C(0x05)
#define BME280_FILTER_MSK UINT8_C(0x1C)
#define BME280_FILTER_POS UINT8_C(0x02)
#define BME280_FILTER_MSK UINT8_C(0x0E)
#define BME280_FILTER_POS UINT8_C(0x01)
#define BME280_STANDBY_MSK UINT8_C(0xE0)
#define BME280_STANDBY_POS UINT8_C(0x05)
#define BME280_STANDBY_MSK UINT8_C(0x70)
#define BME280_STANDBY_POS UINT8_C(0x04)
/**\name Sensor component selection macros
These values are internal for API implementation. Don't relate this to
@ -217,7 +217,7 @@
#define BME280_OVERSAMPLING_16X UINT8_C(0x05)
/**\name Standby duration selection macros */
#define BME280_STANDBY_TIME_1_MS (0x00)
#define BME280_STANDBY_TIME_05_MS (0x00)
#define BME280_STANDBY_TIME_62_5_MS (0x01)
#define BME280_STANDBY_TIME_125_MS (0x02)
#define BME280_STANDBY_TIME_250_MS (0x03)