aboutsummaryrefslogtreecommitdiff
path: root/docs/library/machine.I2C.rst
diff options
context:
space:
mode:
authorPaul Sokolovsky2016-06-09 03:03:53 +0300
committerPaul Sokolovsky2016-06-09 03:03:53 +0300
commit79b40d11276b2b70b2eaa2fe0cac4d3d830c19e4 (patch)
tree6fac3aa3d59301d621896e7597bfbd12d810c43c /docs/library/machine.I2C.rst
parenta0c296f6d515b0a18306213cf64d9580875448f6 (diff)
docs/machine*: Remove explicit targets and "machine." prefixes on classes.
With currentmodule:: set properly, none are needed. Extra "machine." prefix produces wrong indexing data.
Diffstat (limited to 'docs/library/machine.I2C.rst')
-rw-r--r--docs/library/machine.I2C.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/library/machine.I2C.rst b/docs/library/machine.I2C.rst
index 2f020f6d4..b3bfa68f0 100644
--- a/docs/library/machine.I2C.rst
+++ b/docs/library/machine.I2C.rst
@@ -1,5 +1,4 @@
.. currentmodule:: machine
-.. _machine.I2C:
class I2C -- a two-wire serial protocol
=======================================
@@ -45,14 +44,14 @@ Constructors
.. only:: port_wipy
- .. class:: machine.I2C(bus, ...)
+ .. class:: I2C(bus, ...)
Construct an I2C object on the given bus. `bus` can only be 0.
If the bus is not given, the default one will be selected (0).
.. only:: port_esp8266
- .. class:: machine.I2C(scl, sda, \*, freq=400000)
+ .. class:: I2C(scl, sda, \*, freq=400000)
Construct and return a new I2C object.
See the init method below for a description of the arguments.