|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISwitch
Represents a simple pushbutton switch
| Method Summary | |
|---|---|
boolean |
isClosed()
Answer true if the switch IS pressed |
boolean |
isOpen()
Answer true if the switch is NOT pressed |
void |
waitForChange()
Block the current thread until the switch's state changes. |
| Method Detail |
|---|
boolean isOpen()
boolean isClosed()
void waitForChange()
EDemoBoard.waitForPinChange().
|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||