Adafruit Library
Classes | Macros
WipperSnapper_I2C_Driver_SGP41.h File Reference
#include "WipperSnapper_I2C_Driver.h"
#include <Adafruit_SGP41.h>
#include <NOxGasIndexAlgorithm.h>
#include <VOCGasIndexAlgorithm.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  WipperSnapper_I2C_Driver_SGP41
 Class that provides a driver interface for the SGP41 sensor. More...
 

Macros

#define SGP41_FASTTICK_INTERVAL_MS   1000
 Enforce ~1 Hz cadence.
 
#define SGP41_CONDITIONING_TICKS   10
 Recommended warmup cycles.
 
#define SGP41_VOC_LEARNING_MS   60000UL
 VOC index meaningful after ~60s.
 
#define SGP41_NOX_LEARNING_MS   300000UL
 NOx index meaningful after ~300s.
 

Detailed Description

Device driver for the SGP41 VOC/gas sensor.

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

Copyright (c) Tyeth Gundry 2026 for Adafruit Industries.

MIT license, all text here must be included in any redistribution.