![]() |
Erriez BMP280 / BME280 library for Arduino
1.0.1
This is a BMP280/BME280 temperature/pressure/humidity sensor library for Arduino.
|
BMP280/BME280 sensor library for Arduino. More...
#include <Arduino.h>
#include <Wire.h>
Go to the source code of this file.
Classes | |
class | ErriezBMX280 |
BMX280 class. More... | |
Macros | |
#define | BMX280_I2C_ADDR 0x76 |
I2C address. | |
#define | BMX280_I2C_ADDR_ALT 0x77 |
I2C alternative address. | |
#define | BMX280_REG_DIG_T1 0x88 |
Temperature coefficient register. | |
#define | BMX280_REG_DIG_T2 0x8A |
Temperature coefficient register. | |
#define | BMX280_REG_DIG_T3 0x8C |
Temperature coefficient register. | |
#define | BMX280_REG_DIG_P1 0x8E |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P2 0x90 |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P3 0x92 |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P4 0x94 |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P5 0x96 |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P6 0x98 |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P7 0x9A |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P8 0x9C |
Pressure coefficient register. | |
#define | BMX280_REG_DIG_P9 0x9E |
Pressure coefficient register. | |
#define | BME280_REG_DIG_H1 0xA1 |
Humidity coefficient register. | |
#define | BME280_REG_DIG_H2 0xE1 |
Humidity coefficient register. | |
#define | BME280_REG_DIG_H3 0xE3 |
Humidity coefficient register. | |
#define | BME280_REG_DIG_H4 0xE4 |
Humidity coefficient register. | |
#define | BME280_REG_DIG_H5 0xE5 |
Humidity coefficient register. | |
#define | BME280_REG_DIG_H6 0xE7 |
Humidity coefficient register. | |
#define | BME280_REG_CHIPID 0xD0 |
Chip ID register. | |
#define | BME280_REG_RESET 0xE0 |
Reset register. | |
#define | BME280_REG_CTRL_HUM 0xF2 |
BME280: Control humidity register. | |
#define | BMX280_REG_STATUS 0XF3 |
Status register. | |
#define | BMX280_REG_CTRL_MEAS 0xF4 |
Control measure register. | |
#define | BMX280_REG_CONFIG 0xF5 |
Config register. | |
#define | BMX280_REG_PRESS 0xF7 |
Pressure data register. | |
#define | BMX280_REG_TEMP 0xFA |
Temperature data register. | |
#define | BME280_REG_HUM 0xFD |
Humidity data register. | |
#define | CHIP_ID_BMP280 0x58 |
BMP280 chip ID. | |
#define | CHIP_ID_BME280 0x60 |
BME280 chip ID. | |
#define | RESET_KEY 0xB6 |
Reset value for reset register. | |
#define | STATUS_IM_UPDATE 0 |
im_update bit in status register | |
Enumerations | |
enum | BMX280_Mode_e { BMX280_MODE_SLEEP = 0b00, BMX280_MODE_FORCED = 0b01, BMX280_MODE_NORMAL = 0b11 } |
Sleep mode bits ctrl_meas register. More... | |
enum | BMX280_Sampling_e { BMX280_SAMPLING_NONE = 0b000, BMX280_SAMPLING_X1 = 0b001, BMX280_SAMPLING_X2 = 0b010, BMX280_SAMPLING_X4 = 0b011, BMX280_SAMPLING_X8 = 0b100, BMX280_SAMPLING_X16 = 0b101 } |
Sampling bits registers ctrl_hum, ctrl_meas. More... | |
enum | BMX280_Filter_e { BMX280_FILTER_OFF = 0b000, BMX280_FILTER_X2 = 0b001, BMX280_FILTER_X4 = 0b010, BMX280_FILTER_X8 = 0b011, BMX280_FILTER_X16 = 0b100 } |
Filter bits config register. More... | |
enum | BMX280_Standby_e { BMX280_STANDBY_MS_0_5 = 0b000, BMX280_STANDBY_MS_10 = 0b110, BMX280_STANDBY_MS_20 = 0b111, BMX280_STANDBY_MS_62_5 = 0b001, BMX280_STANDBY_MS_125 = 0b010, BMX280_STANDBY_MS_250 = 0b011, BMX280_STANDBY_MS_500 = 0b100, BMX280_STANDBY_MS_1000 = 0b101 } |
Standby duration bits config register. More... | |
BMP280/BME280 sensor library for Arduino.
BMP280 supports temperature and pressure BME280 supports temperature, pressure and humidity
Source: https://github.com/Erriez/ErriezBMX280 Documentation: https://erriez.github.io/ErriezBMX280
Definition in file ErriezBMX280.h.
enum BMX280_Filter_e |
Filter bits config register.
Enumerator | |
---|---|
BMX280_FILTER_OFF | Filter off. |
BMX280_FILTER_X2 | x2 Filter |
BMX280_FILTER_X4 | x4 Filter |
BMX280_FILTER_X8 | x8 Filter |
BMX280_FILTER_X16 | x16 Filter |
Definition at line 109 of file ErriezBMX280.h.
enum BMX280_Mode_e |
Sleep mode bits ctrl_meas register.
Enumerator | |
---|---|
BMX280_MODE_SLEEP | Sleep mode. |
BMX280_MODE_FORCED | Forced mode. |
BMX280_MODE_NORMAL | Normal mode. |
Definition at line 88 of file ErriezBMX280.h.
enum BMX280_Sampling_e |
Sampling bits registers ctrl_hum, ctrl_meas.
Definition at line 97 of file ErriezBMX280.h.
enum BMX280_Standby_e |
Standby duration bits config register.
Definition at line 120 of file ErriezBMX280.h.