mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-28 04:07:46 +00:00
pybricks.pupdevices.Remote: Add disconnect.
This commit is contained in:
@@ -299,7 +299,7 @@ class LWP3Device:
|
||||
"""
|
||||
|
||||
@overload
|
||||
def name(self, name: str) -> None: ...
|
||||
def name(self, name: str) -> MaybeAwaitable: ...
|
||||
|
||||
@overload
|
||||
def name(self) -> str: ...
|
||||
@@ -336,6 +336,12 @@ class LWP3Device:
|
||||
The raw binary message.
|
||||
"""
|
||||
|
||||
def disconnect(self) -> MaybeAwaitable:
|
||||
"""disconnect()
|
||||
|
||||
Disconnects the remote LWP3Device from the hub.
|
||||
"""
|
||||
|
||||
|
||||
class XboxController:
|
||||
"""Use the Microsoft® Xbox® controller as a sensor in your projects to
|
||||
|
||||
@@ -143,6 +143,12 @@ class Remote:
|
||||
this method returns the current name.
|
||||
"""
|
||||
|
||||
def disconnect(self) -> MaybeAwaitable:
|
||||
"""disconnect()
|
||||
|
||||
Disconnects the remote from the hub.
|
||||
"""
|
||||
|
||||
|
||||
class TiltSensor:
|
||||
"""LEGO® Powered Up Tilt Sensor."""
|
||||
|
||||
Reference in New Issue
Block a user