Skip to content
Snippets Groups Projects
Commit c49b2653 authored by Damien George's avatar Damien George
Browse files

docs/wipy/general: Add section about specifics of I2C implementation.

parent 27f08625
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,23 @@ Additional Pin methods:
Returns a list of the alternate functions supported by the pin. List items are
a tuple of the form: ``('ALT_FUN_NAME', ALT_FUN_INDEX)``
Additional details for machine.I2C
----------------------------------
On the WiPy there is a single hardware I2C peripheral, identified by "0". By
default this is the peripheral that is used when constructing an I2C instance.
The default pins are GP23 for SCL and GP13 for SDA, and one can create the
default I2C peripheral simply by doing::
i2c = machine.I2C()
The pins and frequency can be specified as::
i2c = machine.I2C(freq=400000, scl='GP23', sda='GP13')
Only certain pins can be used as SCL/SDA. Please refer to the pinout for further
information.
Known issues
------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment