PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_UV_Sensor Class Reference

This class supports the Grove UV Sensor v1.1. More...

Inheritance diagram for GroveDevices.Grove_UV_Sensor:
PiStorms_GRX.GrovePort

Public Member Functions

def __init__
 
def intensity
 
def UVindex
 
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__
 

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort
 comm
 
 readValue
 
 writeValue
 

Detailed Description

This class supports the Grove UV Sensor v1.1.

The Grove UV Sensor measures ultraviolet light intensity.

Documentation: http://wiki.seeed.cc/Grove-UV_Sensor/

1 import GroveDevices
2 # initialize a UV sensor connected to Bank A analog 1
4 if (uv.UVindex() > 3.0):
5  print("It might be a good idea to put on some sunscreen!")

Member Function Documentation

def GroveDevices.Grove_UV_Sensor.intensity (   self)
Returns
Measured illumination intensity in mW/m^2
def GroveDevices.Grove_UV_Sensor.UVindex (   self)
Note
This is an approximation!
Returns
The estimated measured EPA standard UV index

The documentation for this class was generated from the following file: