XRPOnBoardIO
- class xrp.XRPOnBoardIO
Bases:
pybind11_objectThis class represents the onboard IO of the XRP reference robot. This the USER push button and LED.
DIO 0 - USER Button (input only) DIO 1 - LED (output only)
- getLed() bool
Gets the state of the yellow LED.
- Returns:
True if LED is active, false otherwise.
- getUserButtonPressed() bool
Gets if the USER button is pressed.
- Returns:
True if the USER button is currently pressed.
- kMessageInterval = 1.0
- setLed(value: bool) None
Sets the yellow LED.
- Parameters:
value – True to activate LED, false otherwise.