Adafruit SCD30 Library
|
#include "Arduino.h"
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_I2CDevice.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>
Go to the source code of this file.
Classes | |
class | Adafruit_SCD30_Temp |
class | Adafruit_SCD30_Humidity |
class | Adafruit_SCD30 |
Class that stores state and functions for interacting with the SCD30 CO2, Temperature, and Humidity sensor. More... | |
Macros | |
#define | SCD30_I2CADDR_DEFAULT 0x61 |
SCD30 default i2c address. | |
#define | SCD30_CHIP_ID 0x60 |
SCD30 default device id from WHOAMI. | |
#define | SCD30_WHOAMI 0xD100 |
Chip ID register. | |
#define | SCD30_CMD_READ_MEASUREMENT 0x0300 |
Main data register. | |
#define | SCD30_CMD_CONTINUOUS_MEASUREMENT 0x0010 |
Command to start continuous measurement. | |
#define | SCD30_CMD_STOP_MEASUREMENTS 0x0104 |
Command to stop measurements. | |
#define | SCD30_CMD_SET_MEASUREMENT_INTERVAL 0x4600 |
Command to set measurement interval. | |
#define | SCD30_CMD_GET_DATA_READY 0x0202 |
Data ready reg. | |
#define | SCD30_CMD_AUTOMATIC_SELF_CALIBRATION 0x5306 |
enables/disables auto calibration | |
#define | SCD30_CMD_SET_FORCED_RECALIBRATION_REF 0x5204 |
Forces calibration with given value. | |
#define | SCD30_CMD_SET_TEMPERATURE_OFFSET 0x5403 |
Specifies the temp offset. | |
#define | SCD30_CMD_SET_ALTITUDE_COMPENSATION 0x5102 |
Specifies altitude offset. | |
#define | SCD30_CMD_SOFT_RESET 0xD304 |
Soft reset! | |
#define | SCD30_CMD_READ_REVISION 0xD100 |
Firmware revision number. | |
Enumerations | |
enum | scd30_rate_t { SCD30_RATE_ONE_SHOT, SCD30_RATE_1_HZ, SCD30_RATE_7_HZ, SCD30_RATE_12_5_HZ, SCD30_RATE_25_HZ } |
Allowed values for setDataRate . | |
I2C Driver for the Adafruit SCD30 CO2, Temperature, and Humidity sensor This is a library is written to work with the Adafruit SCD30 breakout: https://www.adafruit.com/products/48xx
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
license (see license.txt)