Class XRPOnBoardIO

java.lang.Object
edu.wpi.first.wpilibj.xrp.XRPOnBoardIO

public class XRPOnBoardIO extends Object
This class represents the onboard IO of the XRP Reference Robot. This includes the USER pushbutton and LED
  • Constructor Details

  • Method Details

    • getUserButtonPressed

      public boolean getUserButtonPressed()
      Gets if the USER button is pressed.
      Returns:
      True if the USER button is currently pressed.
    • setLed

      public void setLed(boolean value)
      Sets the onboard LED.
      Parameters:
      value - True to activate LED, false otherwise.
    • getLed

      public boolean getLed()
      Gets state of the onboard LED.
      Returns:
      True if LED is active, false otherwise.