diff options
author | Damien George <damien.p.george@gmail.com> | 2017-04-18 13:16:05 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-04-18 13:16:05 +1000 |
commit | 8f205c2c9bed1f3f167f2b0a5abba1e676a6aa01 (patch) | |
tree | 0dbac740180407882724423a4f544ec15a04a003 /docs/library/micropython.rst | |
parent | fabaa6143745cf09928dfc13367ddc91e0eb9ad2 (diff) | |
download | micropython-8f205c2c9bed1f3f167f2b0a5abba1e676a6aa01.tar.gz micropython-8f205c2c9bed1f3f167f2b0a5abba1e676a6aa01.zip |
cc3200/mods/pybi2c: Make machine.I2C constructor/init conform to HW API.
This is a user-facing change to the cc3200's API, to make it conform to the
new machine hardware API. The changes are:
- change I2C constructor to: I2C(id=0, *, freq=100000, scl=None, sda=None)
- change I2C init to: init(*, freq, scl, sda)
- removal of machine.I2C.MASTER constant
- I2C str/repr no longer prints I2C.MASTER
To update existing code it should be enough to just remove the I2C.MASTER
constant from contructor/init for I2C.
Diffstat (limited to 'docs/library/micropython.rst')
0 files changed, 0 insertions, 0 deletions