Skip to content

Commit

Permalink
docs/psco6: Fix i2c Documentation.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>

ports/psoc6: Fix i2c Documentation.

Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
  • Loading branch information
IFX-Anusha authored and actions-user committed Oct 17, 2023
1 parent 325fe02 commit 5b39e2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/psoc6/quickref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ The constructor
^^^^^^^^^^^^^^^
An instance of the :mod:`machine.I2C` class can be created by invoking the constructor with all the
necessary parameters to fully configure the ``I2C``. By invoking the constructor, I2C peripheral is
initialized and configured to work in master mode.
initialized and configured to work in master mode. The maximum supported frequency is 1 MHz.

::
from machine import I2C
i2c = I2C(0,scl='P6_0',sda='P6_1',freq=4000000)
i2c = I2C(0,scl='P6_0',sda='P6_1',freq=400000)

Here, ``id=0`` should be passed mandatorily which selects the ``master`` mode operation.

Expand All @@ -203,7 +203,7 @@ Here, ``id=0`` should be passed mandatorily which selects the ``master`` mode op
::

from machine import I2C
i2c = I2C(0,scl='P9_0',sda='P9_1',freq=4000000) #I2C is initialised & configured with given scl,sda pins & frequency
i2c = I2C(0,scl='P9_0',sda='P9_1',freq=400000) #I2C is initialised & configured with given scl,sda pins & frequency

Methods
^^^^^^^
Expand Down

0 comments on commit 5b39e2e

Please sign in to comment.