Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
d4301916
Commit
d4301916
authored
Aug 05, 2015
by
Daniel Campora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Add i2c keywork arguments only indication.
parent
00c4d656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/library/pyb.I2C.rst
docs/library/pyb.I2C.rst
+4
-4
No files found.
docs/library/pyb.I2C.rst
View file @
d4301916
...
...
@@ -125,7 +125,7 @@ Methods
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:
...
...
@@ -138,7 +138,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:
...
...
@@ -151,7 +151,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:
...
...
@@ -168,7 +168,7 @@ Methods
Scan all I2C addresses from 0x01 to 0x7f and return a list of those that respond.
Only valid when in master mode.
.. method:: i2c.send(send, addr=0x00, timeout=5000)
.. method:: i2c.send(send, addr=0x00,
\*,
timeout=5000)
Send data on the bus:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment