USB API
Preview noticeβ
The MatrixOS Python API is in preview and is subject to change; it may contain errors.
Overviewβ
The USB API in MatrixOS provides functions for managing USB connectivity and status. The USB API is available as MatrixOS.USB and is imported by default.
The Python USB API is implemented in Applications/Python/PikaPython/MatrixOS_USB.py with type hints in Applications/Python/PikaPython/_MatrixOS_USB.pyi.
MatrixOS.USB.Connectedβ
def Connected() -> bool
Checks if the device is connected to a USB host.
Returns:
bool: True if USB is connected, False otherwise
Comments