Treehopper Python API
Led Class Reference

A single, monochromatic LED. More...

Public Member Functions

def __init__ (driver, channel, has_brightness_control)
 
def brightness ()
 
def __str__ ()
 

Public Attributes

 brightness_control
 whether this LED has individual brightness control More...
 
 channel
 an integer representing the channel of the driver to which this LED belongs More...
 
 driver
 the LedDriver instance that owns this LED More...
 

Properties

 brightness = property
 Gets or sets the brightness of the LED (from 0.0 - 1.0) More...
 
 state = property
 Gets or sets the state of the LED (True or False) More...
 

Detailed Description

A single, monochromatic LED.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   driver,
  channel,
  has_brightness_control 
)

Member Function Documentation

◆ __str__()

def __str__ ( )

◆ brightness()

def brightness ( )

Member Data Documentation

◆ brightness_control

brightness_control

whether this LED has individual brightness control

◆ channel

channel

an integer representing the channel of the driver to which this LED belongs

◆ driver

driver

the LedDriver instance that owns this LED

Property Documentation

◆ brightness

brightness = property
static

Gets or sets the brightness of the LED (from 0.0 - 1.0)

◆ state

state = property
static

Gets or sets the state of the LED (True or False)


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