|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITriColorLEDController
Interface for objects that provide access and control to 3 Color LEDs
Method Summary | |
---|---|
int |
getBlueLEDValue(PinDescriptor pidx)
Get the current blue color value for the indicated LED |
int |
getGreenLEDValue(PinDescriptor pidx)
Get the current green color value for the indicated LED |
int |
getRedLEDValue(PinDescriptor pidx)
Get the current red color value for the indicated LED |
boolean |
isOnLED(PinDescriptor pidx)
Return if the LED is on or off. |
void |
setLEDValue(PinDescriptor pidx,
int r,
int g,
int b)
Set the RGB value of one of the LEDs being controlled. |
void |
setOnLED(PinDescriptor pidx,
boolean on)
Turn the LED on or off |
Method Detail |
---|
void setLEDValue(PinDescriptor pidx, int r, int g, int b)
int getRedLEDValue(PinDescriptor pidx)
pidx
- desired LED descriptor
int getGreenLEDValue(PinDescriptor pidx)
pidx
- desired LED descriptor
int getBlueLEDValue(PinDescriptor pidx)
pidx
- desired LED descriptor
void setOnLED(PinDescriptor pidx, boolean on)
pidx
- desired LED descriptoron
- turn LED on if trueboolean isOnLED(PinDescriptor pidx)
pidx
- desired LED descriptor
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |