Skip to content
Snippets Groups Projects
Commit 76dcaddc authored by Damien George's avatar Damien George
Browse files

docs/esp8266/quickref: Add internal links to docs for some modules.

parent efc904c4
No related branches found
No related tags found
No related merge requests found
...@@ -23,14 +23,14 @@ Tab-completion is useful to find out what methods an object has. ...@@ -23,14 +23,14 @@ 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.
The ``machine`` module:: The :mod:`machine` module::
import machine import machine
machine.freq() # get the current frequency of the CPU machine.freq() # get the current frequency of the CPU
machine.freq(160000000) # set the CPU frequency to 160 MHz machine.freq(160000000) # set the CPU frequency to 160 MHz
The ``esp`` module:: The :mod:`esp` module::
import esp import esp
...@@ -40,7 +40,7 @@ The ``esp`` module:: ...@@ -40,7 +40,7 @@ The ``esp`` module::
Networking Networking
---------- ----------
The ``network`` module:: The :mod:`network` module::
import network import network
...@@ -69,13 +69,13 @@ A useful function for connecting to your local WiFi network is:: ...@@ -69,13 +69,13 @@ A useful function for connecting to your local WiFi network is::
pass pass
print('network config:', wlan.ifconfig()) print('network config:', wlan.ifconfig())
Once the network is established the ``socket`` module can be used Once the network is established the :mod:`socket <usocket>` module can be used
to create and use TCP/UDP sockets as usual. to create and use TCP/UDP sockets as usual.
Delay and timing Delay and timing
---------------- ----------------
Use the ``time`` module:: Use the :mod:`time <utime>` module::
import time import time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment