Skip to content

Commit f5ef255

Browse files
authored
Merge pull request #5363 from Neradoc/nera-fix-doci2c
Remove leftover stop from I2C.writeto docs
2 parents 1f82fa9 + 23e4f08 commit f5ef255

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-bindings/bitbangio/I2C.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ STATIC mp_obj_t bitbangio_i2c_readfrom_into(size_t n_args, const mp_obj_t *pos_a
217217
}
218218
MP_DEFINE_CONST_FUN_OBJ_KW(bitbangio_i2c_readfrom_into_obj, 3, bitbangio_i2c_readfrom_into);
219219

220-
//| def writeto(self, address: int, buffer: ReadableBuffer, *, start: int = 0, end: Optional[int] = None, stop: bool = True) -> None:
220+
//| def writeto(self, address: int, buffer: ReadableBuffer, *, start: int = 0, end: Optional[int] = None) -> None:
221221
//| """Write the bytes from ``buffer`` to the device selected by ``address`` and then transmits a
222222
//| stop bit. Use `writeto_then_readfrom` when needing a write, no stop and repeated start
223223
//| before a read.

shared-bindings/busio/I2C.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ STATIC mp_obj_t busio_i2c_readfrom_into(size_t n_args, const mp_obj_t *pos_args,
228228
}
229229
MP_DEFINE_CONST_FUN_OBJ_KW(busio_i2c_readfrom_into_obj, 3, busio_i2c_readfrom_into);
230230

231-
//| def writeto(self, address: int, buffer: ReadableBuffer, *, start: int = 0, end: Optional[int] = None, stop: bool = True) -> None:
231+
//| def writeto(self, address: int, buffer: ReadableBuffer, *, start: int = 0, end: Optional[int] = None) -> None:
232232
//| """Write the bytes from ``buffer`` to the device selected by ``address`` and
233233
//| then transmit a stop bit.
234234
//|

0 commit comments

Comments
 (0)