upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the GUVA-S12D UV Sensor. More...
UPM module for the GUVA-S12D UV sensor
Public Member Functions | |
GUVAS12D (int pin) | |
~GUVAS12D () | |
float | value (float aref, unsigned int samples) |
GUVAS12D | ( | int | pin | ) |
GUVA-S12D UV sensor constructor
pin | Analog pin to use |
float value | ( | float | aref, |
unsigned int | samples | ||
) |
Gets the average voltage value from the sensor
aref | Reference voltage in use (usually 5.0 V or 3.3 V) |
samples | Number of samples to average over |