SunSPOT API V3.0


com.sun.spot.sensorboard.peripheral
Interface ISwitchListener


public interface ISwitchListener

Implemented by classes wanting a call back when the switch state changes.


Method Summary
 void switchPressed(ISwitch sw)
          Callback for when the switch state changes from released to pressed.
 void switchReleased(ISwitch sw)
          Callback for when the switch state changes from pressed to released.
 

Method Detail

switchPressed

void switchPressed(ISwitch sw)
Callback for when the switch state changes from released to pressed.


switchReleased

void switchReleased(ISwitch sw)
Callback for when the switch state changes from pressed to released.


SunSPOT API V3.0


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