Adafruit BME280 Library
Classes | Macros | Enumerations
Adafruit_BME280.h File Reference
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Adafruit_SPIDevice.h>
#include <Adafruit_Sensor.h>

Go to the source code of this file.

Classes

struct  bme280_calib_data
 calibration data More...
 
class  Adafruit_BME280_Temp
 
class  Adafruit_BME280_Pressure
 
class  Adafruit_BME280_Humidity
 
class  Adafruit_BME280
 Class that stores state and functions for interacting with BME280 IC. More...
 
struct  Adafruit_BME280::config
 config register More...
 
struct  Adafruit_BME280::ctrl_meas
 ctrl_meas register More...
 
struct  Adafruit_BME280::ctrl_hum
 ctrl_hum register More...
 

Macros

#define BME280_ADDRESS   (0x77)
 default I2C address
 
#define BME280_ADDRESS_ALTERNATE   (0x76)
 alternate I2C address
 

Enumerations

enum  {
  BME280_REGISTER_DIG_T1 = 0x88, BME280_REGISTER_DIG_T2 = 0x8A, BME280_REGISTER_DIG_T3 = 0x8C, BME280_REGISTER_DIG_P1 = 0x8E,
  BME280_REGISTER_DIG_P2 = 0x90, BME280_REGISTER_DIG_P3 = 0x92, BME280_REGISTER_DIG_P4 = 0x94, BME280_REGISTER_DIG_P5 = 0x96,
  BME280_REGISTER_DIG_P6 = 0x98, BME280_REGISTER_DIG_P7 = 0x9A, BME280_REGISTER_DIG_P8 = 0x9C, BME280_REGISTER_DIG_P9 = 0x9E,
  BME280_REGISTER_DIG_H1 = 0xA1, BME280_REGISTER_DIG_H2 = 0xE1, BME280_REGISTER_DIG_H3 = 0xE3, BME280_REGISTER_DIG_H4 = 0xE4,
  BME280_REGISTER_DIG_H5 = 0xE5, BME280_REGISTER_DIG_H6 = 0xE7, BME280_REGISTER_CHIPID = 0xD0, BME280_REGISTER_VERSION = 0xD1,
  BME280_REGISTER_SOFTRESET = 0xE0, BME280_REGISTER_CAL26 = 0xE1, BME280_REGISTER_CONTROLHUMID = 0xF2, BME280_REGISTER_STATUS = 0XF3,
  BME280_REGISTER_CONTROL = 0xF4, BME280_REGISTER_CONFIG = 0xF5, BME280_REGISTER_PRESSUREDATA = 0xF7, BME280_REGISTER_TEMPDATA = 0xFA,
  BME280_REGISTER_HUMIDDATA = 0xFD
}
 Register addresses.
 

Detailed Description

Designed specifically to work with the Adafruit BME280 Breakout -—> http://www.adafruit.com/products/2650

These sensors use I2C or SPI to communicate, 2 or 4 pins are required to interface.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Kevin "KTOWN" Townsend for Adafruit Industries.

BSD license, all text here must be included in any redistribution. See the LICENSE file for details.