Skip to content

Commit 6b80ebe

Browse files
committed
docs/esp8266: Fix indent errors, typos, and add info about REPL UART.
1 parent 42ef5a1 commit 6b80ebe

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/esp8266/quickref.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The Adafruit Feather HUZZAH board (image attribution: Adafruit).
1212
General board control
1313
---------------------
1414

15+
The MicroPython REPL is on UART0 (GPIO1=TX, GPIO3=RX) at baudrate 115200.
1516
Tab-completion is useful to find out what methods an object has.
1617
Paste mode (ctrl-E) is useful to paste a large slab of Python code into
1718
the REPL.
@@ -53,14 +54,14 @@ A useful function for connecting to your local WiFi network is::
5354

5455
def do_connect():
5556
import network
56-
wlan = network.WLAN(wlan.STA_IF)
57+
wlan = network.WLAN(network.STA_IF)
5758
wlan.active(True)
5859
if not wlan.isconnected():
5960
print('connecting to network...')
60-
wlan.connect('essid', 'password')
61-
while not wlan.isconnected():
62-
pass
63-
print('network config:', wlan.ifconfig())
61+
wlan.connect('essid', 'password')
62+
while not wlan.isconnected():
63+
pass
64+
print('network config:', wlan.ifconfig())
6465

6566
Once the network is established the ``socket`` module can be used
6667
to create and use TCP/UDP sockets as usual.
@@ -189,6 +190,8 @@ The I2C driver is implemented in software and works on all pins::
189190

190191
i2c.writeto(0x3a, buf, stop=False) # don't send a stop bit after writing
191192

193+
Note that reading is not yet implemented.
194+
192195
OneWire driver
193196
--------------
194197

0 commit comments

Comments
 (0)