We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7400d88 commit 22ca539Copy full SHA for 22ca539
docs/esp8266/quickref.rst
@@ -107,9 +107,9 @@ Use the :ref:`machine.Pin <machine.Pin>` class::
107
from machine import Pin
108
109
p0 = Pin(0, Pin.OUT) # create output pin on GPIO0
110
- p0.on() # turn on pin, set to high
111
- p0.off() # turn off pin, set to low
112
- p0.value(1) # set pin to high
+ p0.on() # set pin to "on" (high) level
+ p0.off() # set pin to "off" (low) level
+ p0.value(1) # set pin to on/high
113
114
p2 = Pin(2, Pin.IN) # create input pin on GPIO2
115
print(p2.value()) # get value, 0 or 1
0 commit comments