Skip to content

Commit 2444dd1

Browse files
committed
tests: Document bus_id parameter in FakeI2C docstring.
1 parent 098cf18 commit 2444dd1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/fake_machine/i2c.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ class FakeI2C:
55
"""Simulates a MicroPython I2C bus with pre-loaded register values.
66
77
Args:
8+
bus_id: optional I2C bus identifier (ignored, accepted for
9+
MicroPython I2C constructor compatibility).
810
registers: dict mapping register addresses to bytes values.
911
Single-byte registers can use int values.
1012
address: expected I2C device address for validation.

0 commit comments

Comments
 (0)