We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e4526 commit 2146cdaCopy full SHA for 2146cda
docs/esp8266/tutorial/pins.rst
@@ -14,7 +14,7 @@ Here, the "0" is the pin that you want to access. Usually you want to
14
configure the pin to be input or output, and you do this when constructing
15
it. To make an input pin use::
16
17
- >>> pin = machine.Pin(0, machine.Pin.OUT, machine.Pin.PULL_UP)
+ >>> pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP)
18
19
You can either use PULL_UP or None for the input pull-mode. If it's
20
not specified then it defaults to None, which is no pull resistor.
0 commit comments