Widgets
JoystickHat
JoystickHat.get_x_raw()
JoystickHat.get_y_raw()
JoystickHat.get_x()
JoystickHat.get_y()
JoystickHat.swap_x()
JoystickHat.swap_y()
JoystickHat.get_button_status()
The following products are supported:
Create a new instance of the JoystickHat class.
i2c – I2C bus
address – I2C address
UIFLOW2:
Get the raw x-axis value.
x-axis value
Get the raw y-axis value.
y-axis value
Get the x-axis value.
Get the y-axis value.
Swap x-axis direction
swap – True or False
Swap y-axis direction
Get the button status.
True or False