summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/pyb.I2C.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/pyb.I2C.rst')
-rw-r--r--docs/library/pyb.I2C.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/library/pyb.I2C.rst b/docs/library/pyb.I2C.rst
index d8eb8655c6..210b4ccf21 100644
--- a/docs/library/pyb.I2C.rst
+++ b/docs/library/pyb.I2C.rst
@@ -86,13 +86,13 @@ Constructors
Methods
-------
-.. method:: i2c.deinit()
+.. method:: I2C.deinit()
Turn off the I2C bus.
.. only:: port_pyboard
- .. method:: i2c.init(mode, \*, addr=0x12, baudrate=400000, gencall=False)
+ .. method:: I2C.init(mode, \*, addr=0x12, baudrate=400000, gencall=False)
Initialise the I2C bus with the given parameters:
@@ -101,11 +101,11 @@ Methods
- ``baudrate`` is the SCL clock rate (only sensible for a master)
- ``gencall`` is whether to support general call mode
- .. method:: i2c.is_ready(addr)
+ .. method:: I2C.is_ready(addr)
Check if an I2C device responds to the given address. Only valid when in master mode.
- .. method:: i2c.mem_read(data, addr, memaddr, \*, timeout=5000, addr_size=8)
+ .. method:: I2C.mem_read(data, addr, memaddr, \*, timeout=5000, addr_size=8)
Read from the memory of an I2C device:
@@ -118,7 +118,7 @@ Methods
Returns the read data.
This is only valid in master mode.
- .. method:: i2c.mem_write(data, addr, memaddr, \*, timeout=5000, addr_size=8)
+ .. method:: I2C.mem_write(data, addr, memaddr, \*, timeout=5000, addr_size=8)
Write to the memory of an I2C device:
@@ -131,7 +131,7 @@ Methods
Returns ``None``.
This is only valid in master mode.
- .. method:: i2c.recv(recv, addr=0x00, \*, timeout=5000)
+ .. method:: I2C.recv(recv, addr=0x00, \*, timeout=5000)
Receive data on the bus:
@@ -143,7 +143,7 @@ Methods
Return value: if ``recv`` is an integer then a new buffer of the bytes received,
otherwise the same buffer that was passed in to ``recv``.
- .. method:: i2c.send(send, addr=0x00, \*, timeout=5000)
+ .. method:: I2C.send(send, addr=0x00, \*, timeout=5000)
Send data on the bus:
@@ -153,7 +153,7 @@ Methods
Return value: ``None``.
-.. method:: i2c.scan()
+.. method:: I2C.scan()
Scan all I2C addresses from 0x01 to 0x7f and return a list of those that respond.
Only valid when in master mode.