summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial/pins.rst
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-08-09 21:13:27 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-08-09 21:13:27 +0300
commit2146cdab5e276f9c1fc26156579491d3d3a2c3ac (patch)
tree2992bce1bf3d9479bf6fee4ca148f1ccd2a885c7 /docs/esp8266/tutorial/pins.rst
parente4e4526954f8bcd88ceb21fe789963bfa710fa4f (diff)
downloadmicropython-2146cdab5e276f9c1fc26156579491d3d3a2c3ac.tar.gz
micropython-2146cdab5e276f9c1fc26156579491d3d3a2c3ac.zip
docs/esp8266/tutorial/pins: Fix typo in commands for pin input mode.
Diffstat (limited to 'docs/esp8266/tutorial/pins.rst')
-rw-r--r--docs/esp8266/tutorial/pins.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/esp8266/tutorial/pins.rst b/docs/esp8266/tutorial/pins.rst
index 639267d2ee..a44f40d3a7 100644
--- a/docs/esp8266/tutorial/pins.rst
+++ b/docs/esp8266/tutorial/pins.rst
@@ -14,7 +14,7 @@ Here, the "0" is the pin that you want to access. Usually you want to
configure the pin to be input or output, and you do this when constructing
it. To make an input pin use::
- >>> pin = machine.Pin(0, machine.Pin.OUT, machine.Pin.PULL_UP)
+ >>> pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP)
You can either use PULL_UP or None for the input pull-mode. If it's
not specified then it defaults to None, which is no pull resistor.