pybricks.iodevices.XboxController: Add rumble.

This commit is contained in:
Laurens Valk
2024-03-21 17:06:41 +01:00
parent d4e7657d31
commit 2d0cf6c28c
5 changed files with 3020 additions and 4 deletions
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

+12
View File
@@ -18,6 +18,8 @@ Xbox Controller
Buttons include:
* ``Button.A``, ``Button.B``, ``Button.X``, ``Button.Y``.
* ``Button.UP``, ``Button.DOWN``, ``Button.LEFT``, ``Button.RIGHT``
(direction pad). At most two of these can be pressed at the same time.
* ``Button.LB`` and ``Button.RB`` (bumpers).
* ``Button.LJ`` and ``Button.RJ`` (pressing the joysticks).
* ``Button.VIEW``, ``Button.MENU``, ``Button.GUIDE`` (the Xbox logo), and ``Button.UPLOAD``.
@@ -54,6 +56,16 @@ Xbox Controller
.. automethod:: pybricks.iodevices::XboxController.profile
.. blockimg:: pybricks_blockGamepadRumble_default
.. blockimg:: pybricks_blockGamepadRumble_default_with_list
:stack:
.. blockimg:: pybricks_blockGamepadRumble_with_options
:stack:
.. automethod:: pybricks.iodevices::XboxController.rumble
.. _xbox-controller-pairing:
Xbox Controller Pairing Instructions