summaryrefslogtreecommitdiffstatshomepage
path: root/py/modmicropython.c
diff options
context:
space:
mode:
authorMalcolm McKellips <malcolm.mckellips@sparkfun.com>2025-01-24 09:36:02 -0700
committerDamien George <damien@micropython.org>2025-02-28 15:17:34 +1100
commitbb4ec886f8994ad7b2db6f80c7b46e6eedbc40e7 (patch)
tree359e04e5a4c7b94d8a2f38ae64ad56989d6ba8e5 /py/modmicropython.c
parentcad62c20f2971b1248f55f27ab9f6d9bf8ccdafa (diff)
downloadmicropython-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