8#include "SparkFun_ENS160.h"
Central location for pinout and config defines.
int attempt_number
Definition Device.h:19
Implementation of a Sensor for the ENS160.
Definition ENS160Sensor.h:14
TwoWire * i2c_bus
Definition ENS160Sensor.h:17
void readDataPacket(uint8_t *&packet) override
Used for creating packets, reads data from the sensor and appends it to the passed uint8_t array poin...
Definition ENS160Sensor.cpp:94
String decodeToCSV(uint8_t *&packet) override
Used for onboard decoding of packets.
Definition ENS160Sensor.cpp:123
String readData() override
Reads Air Quality Index, TVOC (ppb), and ECOS (ppm)
Definition ENS160Sensor.cpp:52
SparkFun_ENS160 ens
Definition ENS160Sensor.h:16
bool verify() override
Returns if the ENS160 sensor can be reached.
Definition ENS160Sensor.cpp:35
Parent class for sensor objects.
Definition Sensor.h:13