SunSPOT API V6.0


com.sun.spot.sensorboard.peripheral
Interface ITriColorLED

All Superinterfaces:
ILed, IResource, ITransducer, ITriColorLED

Deprecated. Use ITriColorLED instead

public interface ITriColorLED
extends ILed, 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

setRGB

void setRGB(int redRGB,
            int greenRGB,
            int blueRGB)
Deprecated. 
Set the colour of the LED. The colour will only change if the LED is on, but the values supplied are stored.

Specified by:
setRGB in interface ITriColorLED
Parameters:
redRGB - the intensity of the red portion, in the range 0-255
greenRGB - the intensity of the green portion, in the range 0-255
blueRGB - the intensity of the blue portion, in the range 0-255

setColor

void setColor(LEDColor clr)
Deprecated. 
Set the color of the LED.

Parameters:
clr - the new color

getColor

LEDColor getColor()
Deprecated. 
Get the current color of the LED.

Specified by:
getColor in interface ITriColorLED
Returns:
the current color

getRed

int getRed()
Deprecated. 
Return the current red setting.

Specified by:
getRed in interface ITriColorLED
Returns:
the current red setting

getGreen

int getGreen()
Deprecated. 
Return the current green setting.

Specified by:
getGreen in interface ITriColorLED
Returns:
the current green setting

getBlue

int getBlue()
Deprecated. 
Return the current blue setting.

Specified by:
getBlue in interface ITriColorLED
Returns:
the current blue setting

getIndex

PinDescriptor getIndex()
Deprecated. 
Return the PinDescriptor associated with this LED.

Returns:
the PinDescriptor associated with this LED.

SunSPOT API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.