pyupm_guvas12d module¶
-
class
pyupm_guvas12d.
GUVAS12D
(pin, aref=5.0)[source]¶ Bases:
object
API for the GUVA-S12D UV Sensor.
ID: guvas12d
Name: Analog UV Sensor
Other Names: GUVA-S12D UV Sensor
Category: light
Manufacturer: seeed
Connection: analog
Link:http://wiki.seeed.cc/Grove-UV_Sensor/
Kit: eak UPM module for the GUVA-S12D UV sensor
C++ includes: guvas12d.hpp
-
intensity
()[source]¶ float intensity()
Gets the computed illumination intensity from the sensor in mW/m^2.
Intensity over the sensitive wavelengths in mW/m^2
-
setOffset
(offset)[source]¶ void setOffset(float offset)
Set sensor offset. This offset is applied to the intensity value before scaling. Default is 0.0.
offset: Offset to apply.
-
setScale
(scale)[source]¶ void setScale(float scale)
Set sensor scale. This scale is applied to the intensity value before the offset is applied. Default is 1.0.
scale: Scale to apply.
-
value
(aref, samples)[source]¶ float value(float aref, unsigned int samples)
Deprecated This method is being replaced by the volts() and illumination() methods.
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 (currently ignored)
Average voltage reading
-