|
Sun SPOT API |
||||||||
| 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()
|
LEDColor |
getColor()
get the current color of the LED |
int |
getGreen()
|
int |
getRed()
|
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)
LEDColor getColor()
int getRed()
int getGreen()
int getBlue()
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||