aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Campora2015-09-04 14:36:52 +0200
committerDaniel Campora2015-09-10 07:59:41 +0200
commit36821d095a2657ab370a8f413f471f4c9ad9a8b5 (patch)
tree59ca23ec96e63dd46d486e7e7289733ab2b55a27 /docs
parentd5e256486eafab543c3e24850fe87136c2f0575d (diff)
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
Diffstat (limited to 'docs')
-rw-r--r--docs/library/pyb.Pin.rst8
-rw-r--r--docs/wipy/quickref.rst4
2 files changed, 2 insertions, 10 deletions
diff --git a/docs/library/pyb.Pin.rst b/docs/library/pyb.Pin.rst
index 1676f23d9..bfe8ab8ce 100644
--- a/docs/library/pyb.Pin.rst
+++ b/docs/library/pyb.Pin.rst
@@ -185,14 +185,6 @@ Methods
Get the pin id.
-.. method:: pin.high()
-
- Set the pin to a high logic level.
-
-.. method:: pin.low()
-
- Set the pin to a low logic level.
-
.. method:: pin.value([value])
Get or set the digital logic level of the pin:
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst
index da895d7b3..fe6b053b7 100644
--- a/docs/wipy/quickref.rst
+++ b/docs/wipy/quickref.rst
@@ -29,8 +29,8 @@ See :ref:`pyb.Pin <pyb.Pin>`. ::
# initialize GP2 in gpio mode (af=0) and make it an output
p_out = Pin('GP2', mode=Pin.OUT)
- p_out.high()
- p_out.low()
+ p_out.value(1)
+ p_out.value(0)
p_out.toggle()
p_out(True)