XRPOnBoardIO

class xrp.XRPOnBoardIO

Bases: pybind11_object

This 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)

MESSAGE_INTERVAL = 1.0
get_led() bool

Gets the state of the yellow LED.

Returns:

True if LED is active, false otherwise.

get_user_button_pressed() bool

Gets if the USER button is pressed.

Returns:

True if the USER button is currently pressed.

set_led(value: bool) None

Sets the yellow LED.

Parameters:

value – True to activate LED, false otherwise.