Skip to content

Commit 22ca539

Browse files
committed
docs/esp8266/quickref: Polish Pin.on()/off() examples.
1 parent 7400d88 commit 22ca539

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/esp8266/quickref.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Use the :ref:`machine.Pin <machine.Pin>` class::
107107
from machine import Pin
108108

109109
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
110+
p0.on() # set pin to "on" (high) level
111+
p0.off() # set pin to "off" (low) level
112+
p0.value(1) # set pin to on/high
113113

114114
p2 = Pin(2, Pin.IN) # create input pin on GPIO2
115115
print(p2.value()) # get value, 0 or 1

0 commit comments

Comments
 (0)