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

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

Inheritance diagram for GroveDevices.Grove_Light_Sensor:

Public Member Functions

def __init__
def lightLevel
- 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 Light Sensor v1.1.

This is a simple sensor that uses a photoresistor to detect light.

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

1 import GroveDevices
2 # initialize a light sensor connected to Bank A analog 1
4 if (light.lightLevel() < 1000):
5  print("It's pretty dark in here.")

Member Function Documentation

def GroveDevices.Grove_Light_Sensor.lightLevel (   self)
A number corresponding with the current detected light level. Average indoor lighting might be in the 2000's.

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