docs/esp8266: Fix indent errors, typos, and add info about REPL UART.
This commit is contained in:
parent
42ef5a1567
commit
6b80ebe32e
|
@ -12,6 +12,7 @@ The Adafruit Feather HUZZAH board (image attribution: Adafruit).
|
||||||
General board control
|
General board control
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
The MicroPython REPL is on UART0 (GPIO1=TX, GPIO3=RX) at baudrate 115200.
|
||||||
Tab-completion is useful to find out what methods an object has.
|
Tab-completion is useful to find out what methods an object has.
|
||||||
Paste mode (ctrl-E) is useful to paste a large slab of Python code into
|
Paste mode (ctrl-E) is useful to paste a large slab of Python code into
|
||||||
the REPL.
|
the REPL.
|
||||||
|
@ -53,7 +54,7 @@ A useful function for connecting to your local WiFi network is::
|
||||||
|
|
||||||
def do_connect():
|
def do_connect():
|
||||||
import network
|
import network
|
||||||
wlan = network.WLAN(wlan.STA_IF)
|
wlan = network.WLAN(network.STA_IF)
|
||||||
wlan.active(True)
|
wlan.active(True)
|
||||||
if not wlan.isconnected():
|
if not wlan.isconnected():
|
||||||
print('connecting to network...')
|
print('connecting to network...')
|
||||||
|
@ -189,6 +190,8 @@ The I2C driver is implemented in software and works on all pins::
|
||||||
|
|
||||||
i2c.writeto(0x3a, buf, stop=False) # don't send a stop bit after writing
|
i2c.writeto(0x3a, buf, stop=False) # don't send a stop bit after writing
|
||||||
|
|
||||||
|
Note that reading is not yet implemented.
|
||||||
|
|
||||||
OneWire driver
|
OneWire driver
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue