This commit is contained in:
2024-07-08 10:02:31 -04:00
parent 381e1c15d2
commit 1d9b43073b
19 changed files with 1317 additions and 1299 deletions

View File

@@ -0,0 +1,16 @@
#ifndef __BME280_H__
#define __BME280_H__
#define BME280_CHIP_ID (0x60)
#define BME280_I2C_ADDRESS1 (0x76) // BME280 Data sheet p. 32
#define BME280_I2C_ADDRESS2 (0x77)
/** GLOBAL MEMORY MAN AND REGISTERS
* BME280 Data Sheet p. 26
* 0xD0 -> Chip ID -> 0x60 for BME280 or 0x56;0x58 for BMP280
* 0xF5 -> Config -> 110 for 10ms or 111 for 20ms
* 0xF7-0xF9 -> Pressure -> 16- to 20-bit resolution
* 0xFA-0xFC -> Temperature -> 16- to 20-bit resolution
*/