Rearrange python code
This commit is contained in:
parent
7dd8e414a4
commit
d08d36df82
9 changed files with 58 additions and 22 deletions
30
src/switch_pico_bridge/__init__.py
Normal file
30
src/switch_pico_bridge/__init__.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
"""
|
||||
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,
|
||||
decode_rumble,
|
||||
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",
|
||||
"decode_rumble",
|
||||
"str_to_dpad",
|
||||
"trigger_to_button",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue