|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ITriColorLED instead
public interface ITriColorLED
Access and control of 3 color LEDs
| Method Summary | |
|---|---|
int |
getBlue()
Deprecated. Return the current blue setting. |
LEDColor |
getColor()
Deprecated. Get the current color of the LED. |
int |
getGreen()
Deprecated. Return the current green setting. |
PinDescriptor |
getIndex()
Deprecated. Return the PinDescriptor associated with this LED. |
int |
getRed()
Deprecated. Return the current red setting. |
void |
setColor(LEDColor clr)
Deprecated. Set the color of the LED. |
void |
setRGB(int redRGB,
int greenRGB,
int blueRGB)
Deprecated. Set the colour of the LED. |
| Methods inherited from interface com.sun.spot.resources.transducers.ILed |
|---|
isOn, setOff, setOn, setOn |
| Methods inherited from interface com.sun.spot.resources.transducers.ITransducer |
|---|
createSensorEvent, getDescription, getMaxSamplingRate, saveEventState |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Methods inherited from interface com.sun.spot.resources.transducers.ITriColorLED |
|---|
setColor |
| Methods inherited from interface com.sun.spot.resources.transducers.ILed |
|---|
isOn, setOff, setOn, setOn |
| Methods inherited from interface com.sun.spot.resources.transducers.ITransducer |
|---|
createSensorEvent, getDescription, getMaxSamplingRate, saveEventState |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Method Detail |
|---|
void setRGB(int redRGB,
int greenRGB,
int blueRGB)
setRGB in interface ITriColorLEDredRGB - 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()
getColor in interface ITriColorLEDint getRed()
getRed in interface ITriColorLEDint getGreen()
getGreen in interface ITriColorLEDint getBlue()
getBlue in interface ITriColorLEDPinDescriptor getIndex()
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||