Treehopper Java API
io.treehopper.libraries.displays.Led Class Reference

LED. More...

Public Member Functions

 Led (ILedDriver driver, int channel)
 
 Led (ILedDriver driver, int channel, boolean hasBrightnessControl)
 
int getChannel ()
 
ILedDriver getDriver ()
 
double getBrightness ()
 
void setBrightness (double value)
 
boolean hasBrightnessControl ()
 
boolean getState ()
 
void setState (boolean value)
 

Detailed Description

LED.

Constructor & Destructor Documentation

◆ Led() [1/2]

io.treehopper.libraries.displays.Led.Led ( ILedDriver  driver,
int  channel 
)

◆ Led() [2/2]

io.treehopper.libraries.displays.Led.Led ( ILedDriver  driver,
int  channel,
boolean  hasBrightnessControl 
)

Member Function Documentation

◆ getBrightness()

double io.treehopper.libraries.displays.Led.getBrightness ( )

◆ getChannel()

int io.treehopper.libraries.displays.Led.getChannel ( )

◆ getDriver()

ILedDriver io.treehopper.libraries.displays.Led.getDriver ( )

◆ getState()

boolean io.treehopper.libraries.displays.Led.getState ( )

◆ hasBrightnessControl()

boolean io.treehopper.libraries.displays.Led.hasBrightnessControl ( )

◆ setBrightness()

void io.treehopper.libraries.displays.Led.setBrightness ( double  value)

◆ setState()

void io.treehopper.libraries.displays.Led.setState ( boolean  value)

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