SunSPOT API V3.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 V3.0


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