mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
pybricks.pupdevices.Remote: Add disconnect.
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Added
|
||||
|
||||
- Added `pybricks.pupdevices.Remote.disconnect` method.
|
||||
|
||||
## 3.5.0b1 - 2024-03-11
|
||||
|
||||
### Added
|
||||
|
||||
@@ -28,6 +28,8 @@ Remote Control
|
||||
|
||||
.. automethod:: pybricks.pupdevices::Remote.buttons.pressed
|
||||
|
||||
.. automethod:: pybricks.pupdevices::Remote.disconnect
|
||||
|
||||
Examples
|
||||
-------------------
|
||||
|
||||
|
||||
@@ -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