SunSPOT API V5.0


com.sun.spot.peripheral
Interface ILed

All Known Subinterfaces:
ITriColorLED
All Known Implementing Classes:
TriColorLED

public interface ILed

Represents a simple one-colour LED


Method Summary
 boolean isOn()
           
 void setOff()
          Turn the LED off
 void setOn()
          Turn the LED on
 void setOn(boolean on)
          Set the LED's state
 

Method Detail

setOn

void setOn()
Turn the LED on


setOff

void setOff()
Turn the LED off


setOn

void setOn(boolean on)
Set the LED's state

Parameters:
on - true to set the LED on, false to set it off.

isOn

boolean isOn()
Returns:
the current state of the LED

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.