Skip to content

Commit 2146cda

Browse files
committed
docs/esp8266/tutorial/pins: Fix typo in commands for pin input mode.
1 parent e4e4526 commit 2146cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/esp8266/tutorial/pins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here, the "0" is the pin that you want to access. Usually you want to
1414
configure the pin to be input or output, and you do this when constructing
1515
it. To make an input pin use::
1616

17-
>>> pin = machine.Pin(0, machine.Pin.OUT, machine.Pin.PULL_UP)
17+
>>> pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP)
1818

1919
You can either use PULL_UP or None for the input pull-mode. If it's
2020
not specified then it defaults to None, which is no pull resistor.

0 commit comments

Comments
 (0)