Sun SPOT API
Green Release  


com.sun.spot.sensorboard.peripheral
Interface ITriColorLED

All Superinterfaces:
ILed
All Known Implementing Classes:
TriColorLED

public interface ITriColorLED
extends ILed

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

setRGB

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

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)
Set the color of the LED


getColor

LEDColor getColor()
get the current color of the LED


getRed

int getRed()
Returns:
the current setting for the red led

getGreen

int getGreen()
Returns:
the current setting for the green led

getBlue

int getBlue()
Returns:
the current setting for the blue led

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.