summaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-13 21:36:40 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-16 10:10:31 +0200
commit624cdeacc4c2678273ae535f3ede84846afe3ef5 (patch)
tree2752114f4bd1eb5b65834d2ddfe229cb653d63e2 /docs
parent41f6948545c8f5909413badbef2dcd5794598bf0 (diff)
downloadmicropython-624cdeacc4c2678273ae535f3ede84846afe3ef5.tar.gz
micropython-624cdeacc4c2678273ae535f3ede84846afe3ef5.zip
docs/wipy: Add pins to the I2C constructor.
Diffstat (limited to 'docs')
-rw-r--r--docs/library/pyb.I2C.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/library/pyb.I2C.rst b/docs/library/pyb.I2C.rst
index caeb3d6630..eb60f22ffa 100644
--- a/docs/library/pyb.I2C.rst
+++ b/docs/library/pyb.I2C.rst
@@ -181,12 +181,13 @@ Methods
.. only:: port_wipy
- .. method:: i2c.init(mode, \*, baudrate=100000)
+ .. method:: i2c.init(mode, \*, baudrate=100000, pins=(SDA, SCL))
Initialise the I2C bus with the given parameters:
- ``mode`` must be ``I2C.MASTER``
- ``baudrate`` is the SCL clock rate
+ - ``pins`` is an optional tuple with the pins to assign to the I2C bus.
.. method:: i2c.readfrom(addr, nbytes)