diff options
author | Malcolm McKellips <malcolm.mckellips@sparkfun.com> | 2025-01-24 09:36:02 -0700 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-02-28 15:17:34 +1100 |
commit | bb4ec886f8994ad7b2db6f80c7b46e6eedbc40e7 (patch) | |
tree | 359e04e5a4c7b94d8a2f38ae64ad56989d6ba8e5 /py/modmicropython.c | |
parent | cad62c20f2971b1248f55f27ab9f6d9bf8ccdafa (diff) | |
download | micropython-bb4ec886f8994ad7b2db6f80c7b46e6eedbc40e7.tar.gz micropython-bb4ec886f8994ad7b2db6f80c7b46e6eedbc40e7.zip |
rp2/machine_i2c: Make I2C bus ID arg optional with default.
This commit gives the option to not pass an I2C Bus ID when creating a
machine I2C object. If the ID is not provided, the default bus ID (which
is `PICO_DEFAULT_I2C`) is used.
This allows users to simply declare an I2C object with `machine.I2C()`
without passing any arguments, thus creating an object with the default I2C
ID, SCL, and SDA.
Signed-off-by: Malcolm McKellips <malcolm.mckellips@sparkfun.com>
Diffstat (limited to 'py/modmicropython.c')
0 files changed, 0 insertions, 0 deletions