Decode Nintendo HD-rumble words once in firmware into conventional low/high magnitudes and normalize stripped control SET_REPORT vs complete interrupt OUT reports through one path.
28 lines
589 B
Python
28 lines
589 B
Python
"""
|
|
Python helpers for the switch-pico firmware.
|
|
|
|
Expose the UART helpers at the package root so callers can import
|
|
``switch_pico_bridge`` and access the public API directly.
|
|
"""
|
|
|
|
from .switch_pico_uart import ( # noqa: F401
|
|
SwitchButton,
|
|
SwitchDpad,
|
|
SwitchUARTClient,
|
|
axis_to_stick,
|
|
discover_serial_ports,
|
|
first_serial_port,
|
|
str_to_dpad,
|
|
trigger_to_button,
|
|
)
|
|
|
|
__all__ = [
|
|
"SwitchUARTClient",
|
|
"SwitchButton",
|
|
"SwitchDpad",
|
|
"discover_serial_ports",
|
|
"first_serial_port",
|
|
"axis_to_stick",
|
|
"str_to_dpad",
|
|
"trigger_to_button",
|
|
]
|