PiStorms  4.012
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
mindsensors.EV3Lights Class Reference

EV3Lights: this class provides functions to control RGB LEDs using EV3Lights. More...

Inheritance diagram for mindsensors.EV3Lights:

Public Member Functions

def __init__
 Initialize the class with the i2c address of your EV3Lights. More...
 
def setColor
 Sets the Intensity of Color on the strip. More...
 

Static Public Attributes

tuple EV3Lights_ADDRESS = (0x2c)
 Default NXTServo I2C Address.
 
int RED = 0x42
 
int GREEN = 0x43
 
int BLUE = 0x44
 

Detailed Description

EV3Lights: this class provides functions to control RGB LEDs using EV3Lights.

Constructor & Destructor Documentation

def mindsensors.EV3Lights.__init__ (   self,
  ev3lights_address = EV3Lights_ADDRESS 
)

Initialize the class with the i2c address of your EV3Lights.

Parameters
selfThe object pointer.
ev3lights_addressAddress of your EV3Lights

Member Function Documentation

def mindsensors.EV3Lights.setColor (   self,
  Color,
  intensity 
)

Sets the Intensity of Color on the strip.

Parameters
selfThe object pointer
ColorName you wish to control
intensityintensity of that color (0 to 255)

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