mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-15 11:04:55 +00:00
api/iodevices/PUPDevice: add info() method
This commit is contained in:
@@ -18,7 +18,13 @@ Powered Up Device
|
||||
:width: 70 %
|
||||
|
||||
.. autoclass:: pybricks.iodevices.PUPDevice
|
||||
:no-members:
|
||||
|
||||
.. automethod:: pybricks.iodevices.PUPDevice.info
|
||||
|
||||
.. automethod:: pybricks.iodevices.PUPDevice.read
|
||||
|
||||
.. automethod:: pybricks.iodevices.PUPDevice.write
|
||||
|
||||
.. raw:: html
|
||||
|
||||
|
||||
@@ -15,6 +15,14 @@ class PUPDevice:
|
||||
"""
|
||||
pass
|
||||
|
||||
def info(self):
|
||||
"""Returns information about the device.
|
||||
|
||||
Returns:
|
||||
``dict``: Dictionary with information, such as the device ``id``.
|
||||
"""
|
||||
pass
|
||||
|
||||
def read(self, mode):
|
||||
"""Reads values from a given mode.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user