api/customdevices: use bytes for I2C

This is a more natural data type than tuples or ints for this class.
This commit is contained in:
Laurens Valk
2019-12-06 14:31:53 +01:00
parent e6a1ae78ca
commit 4086ee67ac
+2 -3
View File
@@ -83,7 +83,7 @@ class I2CDevice():
length (``int``): How many bytes to read.
Returns:
tuple of ``int``: Bytes returned from the device.
``bytes``: Bytes returned from the device.
"""
pass
@@ -93,7 +93,6 @@ class I2CDevice():
Arguments:
reg (``int``): Register at which to begin
writing: 0--255 or 0x00--0xFF.
data (tuple of ``int``): Tuple of the bytes to be written. To write
just one byte, a single ``int`` is also allowed.
data (``bytes``): Bytes to be written.
"""
pass