pybricks.pupdevices.Remote: Add disconnect.

This commit is contained in:
Laurens Valk
2024-04-04 20:42:17 +02:00
parent 615d21cd54
commit d228b7de99
4 changed files with 19 additions and 1 deletions
+7 -1
View File
@@ -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
+6
View File
@@ -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."""