mirror of
https://github.com/boschsensortec/BME280_SensorAPI.git
synced 2024-09-19 15:56:12 -04:00
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:
parent
a50e719ded
commit
86f5b6d469
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user