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

This class supports the Grove LED Socket Kit v1.4. More...

Inheritance diagram for GroveDevices.Grove_LED_Socket:

Public Member Functions

def __init__
def setLED
def on
def off
- 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 LED Socket Kit v1.4.

This simple Grove module lets you connect and LED and turn it on or off. You can use it for a power light, a simple status indicator, or anything else you might use and LED for.

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

1 import time
2 import GroveDevices
3 # initialize a Grove LED connected to Bank A digital 1
5 led.setLED(True)
6 time.sleep(1)
7 led.setLED(False)

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