|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ridgesoft.robotics.BasicPushButton
Implements the PushButton interface using a DigitalInput to read the button’s status.
| Constructor Summary | |
BasicPushButton(DigitalInput input)
Construct a BasicPushButton for a button which pulls the input low when pressed. |
|
| Method Summary | |
boolean |
isPressed()
Returns true if the button is currently pressed. |
void |
waitPressed()
Waits for the button to be pressed. |
void |
waitReleased()
Waits for the button to be released. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
public BasicPushButton(DigitalInput input)
input - the DigitalInput used by the push button| Method Detail |
public boolean isPressed()
isPressed in interface PushButtonpublic void waitPressed()
waitPressed in interface PushButtonpublic void waitReleased()
waitReleased in interface PushButton
|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||