3 #define BMP280_I2C_ADDR 0x76
4 #define BMP280_I2C_ADDR_ALT 0x77
5 #define BMP280_CHIPID 0x58 // Pressure,Temp
6 #define BME280_CHIPID 0x60 // Pressure,Temp,Humid
9 #define BMP280_REG_CALIB_COEFFS_START 0x88
10 #define BMP280_REG_CHIPID 0xD0
11 #define BMP280_REG_STATUS 0xF3
12 #define BMP280_REG_CTRL_MEAS 0xF4
13 #define BMP280_REG_CONFIG 0xF5
14 #define BMP280_REG_PRESSURE_MSB 0xF7
15 #define BMP280_REG_PRESSURE_LSB 0xF8
16 #define BMP280_REG_PRESSURE_XLSB 0xF9
17 #define BMP280_REG_TEMPERATURE_MSB 0xFA
18 #define BMP280_REG_TEMPERATURE_LSB 0xFB
19 #define BMP280_REG_TEMPERATURE_XLSB 0xFC
22 #define BMP280_LEN_TEMP_PRESS_DATA 6
23 #define BMP280_MODE_SLEEP 0x00
24 #define BMP280_MODE_FORCED 0x01
25 #define BMP280_MODE_NORMAL 0x03 // Freerunning mode
27 #define BMP280_OVERSAMP_SKIPPED 0x00
28 #define BMP280_OVERSAMP_1X 0x01
29 #define BMP280_OVERSAMP_2X 0x02
30 #define BMP280_OVERSAMP_4X 0x03
31 #define BMP280_OVERSAMP_8X 0x04
32 #define BMP280_OVERSAMP_16X 0x05
34 #define BMP280_FILTER_COEFF_OFF 0x00
35 #define BMP280_FILTER_COEFF_2 0x01
36 #define BMP280_FILTER_COEFF_4 0x02
37 #define BMP280_FILTER_COEFF_8 0x03
38 #define BMP280_FILTER_COEFF_16 0x04