summaryrefslogtreecommitdiff
path: root/docs/wipy/quickref.rst
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-04 14:36:52 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-10 07:59:41 +0200
commit36821d095a2657ab370a8f413f471f4c9ad9a8b5 (patch)
tree59ca23ec96e63dd46d486e7e7289733ab2b55a27 /docs/wipy/quickref.rst
parentd5e256486eafab543c3e24850fe87136c2f0575d (diff)
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
Diffstat (limited to 'docs/wipy/quickref.rst')
-rw-r--r--docs/wipy/quickref.rst4
1 files changed, 2 insertions, 2 deletions
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)