|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITriColorLEDController
Interface for objects that provide access and control to 3 Color LEDs
| Field Summary | |
|---|---|
static int |
BLUE
internal encoding for blue segment |
static int |
GREEN
internal encoding for green segment |
static int |
RED
internal encoding for red segment |
| Method Summary | |
|---|---|
ITriColorLED |
bindLED(PinDescriptor pidx)
Bind an LED to the pin and return the accessor object |
void |
setLEDColorIntensity(PinDescriptor pidx,
int clr,
int val)
Set the value of only one of the color components. |
void |
setLEDValue(PinDescriptor pidx,
int r,
int g,
int b)
set the value of one of the LEDs being controlled |
| Field Detail |
|---|
static final int RED
static final int GREEN
static final int BLUE
| Method Detail |
|---|
ITriColorLED bindLED(PinDescriptor pidx)
pidx - desired LED descriptor
void setLEDValue(PinDescriptor pidx,
int r,
int g,
int b)
void setLEDColorIntensity(PinDescriptor pidx,
int clr,
int val)
pidx - pin that LED is attached toclr - color segment to be changedval - value to set segment to
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||