Adafruit SGP-40 Library
|
#include "Arduino.h"
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_I2CDevice.h>
#include "sensirion_arch_config.h"
#include "sensirion_voc_algorithm.h"
Go to the source code of this file.
Classes | |
class | Adafruit_SGP40 |
Class that stores state and functions for interacting with SGP40 Gas Sensor. More... | |
Macros | |
#define | SGP40_I2CADDR_DEFAULT 0x59 |
SGP40 has only one I2C address. | |
#define | SGP40_FEATURESET 0x0020 |
The required set for this library. | |
#define | SGP40_CRC8_POLYNOMIAL 0x31 |
Seed for SGP40's CRC polynomial. | |
#define | SGP40_CRC8_INIT 0xFF |
Init value for CRC. | |
#define | SGP40_WORD_LEN 2 |
2 bytes per word | |
This is the documentation for Adafruit's SGP40 driver for the Arduino platform. It is designed specifically to work with the Adafruit SGP40 breakout: http://www.adafruit.com/products/4829
These sensors use I2C to communicate, 2 pins (SCL+SDA) are required to interface with the breakout.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Ladyada for Adafruit Industries.
BSD license, all text here must be included in any redistribution.