mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-15 02:54:52 +00:00
api/pupdevices/Remote: add address
After connecting (automatically), this address can be printed so next time you can connect directly without scanning. This is useful if you have more than one remote.
This commit is contained in:
@@ -13,6 +13,9 @@ Remote Control
|
||||
.. autoclass:: pybricks.pupdevices.Remote
|
||||
:no-members:
|
||||
|
||||
.. autoattribute:: pybricks.pupdevices::Remote.address
|
||||
:annotation:
|
||||
|
||||
.. automethod:: pybricks.pupdevices::Remote.light.on
|
||||
|
||||
.. automethod:: pybricks.pupdevices::Remote.light.off
|
||||
|
||||
@@ -31,7 +31,7 @@ class Remote:
|
||||
light = _ColorLight()
|
||||
buttons = _Keypad()
|
||||
address = None
|
||||
"""Bluetooth address of the remote."""
|
||||
"""Bluetooth address of the remote, or ``None`` if it is not connected."""
|
||||
|
||||
def __init__(self, address=None, timeout=10000):
|
||||
"""Connects to the remote.
|
||||
|
||||
Reference in New Issue
Block a user