|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITriColorLED
Access and control of 3 color LEDs
Method Summary | |
---|---|
int |
getBlue()
Return the current blue setting. |
LEDColor |
getColor()
Get the current color of the LED. |
int |
getGreen()
Return the current green setting. |
PinDescriptor |
getIndex()
Return the PinDescriptor associated with this LED. |
int |
getRed()
Return the current red setting. |
void |
setColor(LEDColor clr)
Set the color of the LED. |
void |
setRGB(int redRGB,
int greenRGB,
int blueRGB)
Set the colour of the LED. |
Methods inherited from interface com.sun.spot.peripheral.ILed |
---|
isOn, setOff, setOn, setOn |
Method Detail |
---|
void setRGB(int redRGB, int greenRGB, int blueRGB)
redRGB
- the intensity of the red portion, in the range 0-255greenRGB
- the intensity of the green portion, in the range 0-255blueRGB
- the intensity of the blue portion, in the range 0-255void setColor(LEDColor clr)
clr
- the new colorLEDColor getColor()
int getRed()
int getGreen()
int getBlue()
PinDescriptor getIndex()
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |