diff options
author | Damien George <damien.p.george@gmail.com> | 2017-04-18 13:20:07 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-04-18 13:20:07 +1000 |
commit | 27f0862550fe9008d3a3b784ac31c105134f1a69 (patch) | |
tree | 3e630c68de6c44177138d40938f67b31ac79a8f2 /docs/wipy | |
parent | 8f205c2c9bed1f3f167f2b0a5abba1e676a6aa01 (diff) | |
download | micropython-27f0862550fe9008d3a3b784ac31c105134f1a69.tar.gz micropython-27f0862550fe9008d3a3b784ac31c105134f1a69.zip |
docs/wipy/quickref: Update reference for change to I2C API.
Diffstat (limited to 'docs/wipy')
-rw-r--r-- | docs/wipy/quickref.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst index 2505eb35f0..f60c81f5fe 100644 --- a/docs/wipy/quickref.rst +++ b/docs/wipy/quickref.rst @@ -112,7 +112,7 @@ See :ref:`machine.I2C <machine.I2C>`. :: from machine import I2C # configure the I2C bus - i2c = I2C(0, I2C.MASTER, baudrate=100000) + i2c = I2C(baudrate=100000) i2c.scan() # returns list of slave addresses i2c.writeto(0x42, 'hello') # send 5 bytes to slave with address 0x42 i2c.readfrom(0x42, 5) # receive 5 bytes from slave |