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

This class supports the Grove Luminance Sensor v1.0. More...

Inheritance diagram for GroveDevices.Grove_Luminance_Sensor:

Public Member Functions

def __init__
def luminance
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort

Detailed Description

This class supports the Grove Luminance Sensor v1.0.

The Grove Luminance Sensor detects the ambient light level.

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

1 import GroveDevices
2 # initialize a luminance sensor connected to Bank A analog 1
4 if (lum.luminance() < 20.0):
5  print("Someone turn on the lights, I can't see anything!")

Member Function Documentation

def GroveDevices.Grove_Luminance_Sensor.luminance (   self)
A decimal for the detected light intensity in lux

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