diff options
Diffstat (limited to 'docs/esp8266/quickref.rst')
-rw-r--r-- | docs/esp8266/quickref.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index 72b359669..9e64723b2 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -78,13 +78,13 @@ A useful function for connecting to your local WiFi network is:: pass print('network config:', wlan.ifconfig()) -Once the network is established the :mod:`socket <usocket>` module can be used +Once the network is established the :mod:`socket <socket>` module can be used to create and use TCP/UDP sockets as usual. Delay and timing ---------------- -Use the :mod:`time <utime>` module:: +Use the :mod:`time <time>` module:: import time @@ -171,15 +171,15 @@ attaches the REPL). To detach the REPL from UART0, use:: - import uos - uos.dupterm(None, 1) + import os + os.dupterm(None, 1) The REPL is attached by default. If you have detached it, to reattach it use:: - import uos, machine + import os, machine uart = machine.UART(0, 115200) - uos.dupterm(uart, 1) + os.dupterm(uart, 1) PWM (pulse width modulation) ---------------------------- |