Package edu.wpi.first.wpilibj.xrp
Class XRPOnBoardIO
java.lang.Object
edu.wpi.first.wpilibj.xrp.XRPOnBoardIO
This class represents the onboard IO of the XRP Reference Robot. This includes the USER
pushbutton and LED
-
Constructor Details
-
XRPOnBoardIO
public XRPOnBoardIO()Constructor.
-
-
Method Details
-
getUserButtonPressed
Gets if the USER button is pressed.- Returns:
- True if the USER button is currently pressed.
-
setLed
Sets the onboard LED.- Parameters:
value
- True to activate LED, false otherwise.
-
getLed
Gets state of the onboard LED.- Returns:
- True if LED is active, false otherwise.
-