4#include <SparkFun_AS7331.h>
Central location for pinout and config defines.
Implementation of a Sensor for UVA/B/C sensor.
Definition AS7331Sensor.h:15
String readData() override
Reads UV data.
Definition AS7331Sensor.cpp:41
SfeAS7331ArdI2C myUVSensor
Definition AS7331Sensor.h:17
bool verify() override
Returns if the sensor can be reached.
Definition AS7331Sensor.cpp:31
void readDataPacket(uint8_t *&packet) override
Reads UV data from the sensor and writes it to the packet.
Definition AS7331Sensor.cpp:56
uint8_t i2c_addr
Definition AS7331Sensor.h:18
String decodeToCSV(uint8_t *&packet) override
Decodes a packet into a CSV string.
Definition AS7331Sensor.cpp:77
Parent class for sensor objects.
Definition Sensor.h:13
unsigned long minimum_period
Definition Sensor.h:15