|
46 | 46 | //|
|
47 | 47 | //| """Represents a single I2C device and manages locking the bus and the device
|
48 | 48 | //| address.
|
| 49 | +//| |
49 | 50 | //| :param ~busio.I2C i2c: The I2C bus the device is on
|
50 | 51 | //| :param int device_address: The 7 bit device address
|
51 | 52 | //| :param bool probe: Probe for the device upon object creation, default is true
|
@@ -114,6 +115,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(adafruit_bus_device_i2cdevice___exit_
|
114 | 115 | //| If ``start`` or ``end`` is provided, then the buffer will be sliced
|
115 | 116 | //| as if ``buf[start:end]``. This will not cause an allocation like
|
116 | 117 | //| ``buf[start:end]`` will so it saves memory.
|
| 118 | +//| |
117 | 119 | //| :param bytearray buf: buffer to write into
|
118 | 120 | //| :param int start: Index to start writing at
|
119 | 121 | //| :param int end: Index to write up to but not include; if None, use ``len(buf)``"""
|
@@ -157,6 +159,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_KW(adafruit_bus_device_i2cdevice_readinto_obj, 2,
|
157 | 159 | //| If ``start`` or ``end`` is provided, then the buffer will be sliced
|
158 | 160 | //| as if ``buffer[start:end]``. This will not cause an allocation like
|
159 | 161 | //| ``buffer[start:end]`` will so it saves memory.
|
| 162 | +//| |
160 | 163 | //| :param bytearray buf: buffer containing the bytes to write
|
161 | 164 | //| :param int start: Index to start writing from
|
162 | 165 | //| :param int end: Index to read up to but not include; if None, use ``len(buf)``
|
@@ -208,6 +211,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(adafruit_bus_device_i2cdevice_write_obj, 2, adafruit_
|
208 | 211 | //| will be sliced as if ``in_buffer[in_start:in_end]``. This will not
|
209 | 212 | //| cause an allocation like ``in_buffer[in_start:in_end]`` will so
|
210 | 213 | //| it saves memory.
|
| 214 | +//| |
211 | 215 | //| :param bytearray out_buffer: buffer containing the bytes to write
|
212 | 216 | //| :param bytearray in_buffer: buffer containing the bytes to read into
|
213 | 217 | //| :param int out_start: Index to start writing from
|
|
0 commit comments