docs/esp8266/tutorial/pins: Fix typo in commands for pin input mode.

This commit is contained in:
Paul Sokolovsky 2016-08-09 21:13:27 +03:00
parent e4e4526954
commit 2146cdab5e

View File

@ -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 configure the pin to be input or output, and you do this when constructing
it. To make an input pin use:: 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 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. not specified then it defaults to None, which is no pull resistor.