Skip to content

Commit e73c5c7

Browse files
committed
Update documentation for end param in SPI.readinto()
1 parent 6425e93 commit e73c5c7

File tree

1 file changed

+3
-1
lines changed
  • shared-bindings/busio

1 file changed

+3
-1
lines changed

shared-bindings/busio/SPI.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ MP_DEFINE_CONST_FUN_OBJ_KW(busio_spi_write_obj, 1, busio_spi_write);
299299
//|
300300
//| :param WriteableBuffer buffer: read bytes into this buffer
301301
//| :param int start: beginning of buffer slice
302-
//| :param int end: end of buffer slice; if not specified, use ``len(buffer)``
302+
//| :param int end: end of buffer slice; if not specified, it will be the equivalent value
303+
//| of ``len(buffer)`` and for any value provided it will take the value of
304+
//| ``min(end, len(buffer))``
303305
//| :param int write_value: value to write while reading
304306
//| """
305307
//| ...

0 commit comments

Comments
 (0)