docs/wipy: Fix several typos and change some pyboard to WiPy.
This commit is contained in:
parent
1950295735
commit
a13d22f921
@ -37,7 +37,7 @@ Telnet REPL
|
|||||||
-----------
|
-----------
|
||||||
|
|
||||||
Linux stock telnet works like a charm (also on OSX), but other tools like putty
|
Linux stock telnet works like a charm (also on OSX), but other tools like putty
|
||||||
work quite too. The default credentials are: **user:** ``micro``, **password:** ``python``.
|
work quite well too. The default credentials are: **user:** ``micro``, **password:** ``python``.
|
||||||
See :ref:`network.server <network.server>` for info on how to change the defaults.
|
See :ref:`network.server <network.server>` for info on how to change the defaults.
|
||||||
For instance, on a linux shell (when connected to the WiPy in AP mode)::
|
For instance, on a linux shell (when connected to the WiPy in AP mode)::
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ See the :mod:`machine` module::
|
|||||||
machine.freq() # get the CPU frequency
|
machine.freq() # get the CPU frequency
|
||||||
machine.unique_id() # return the 6-byte unique id of the board (the WiPy's MAC address)
|
machine.unique_id() # return the 6-byte unique id of the board (the WiPy's MAC address)
|
||||||
|
|
||||||
machine.idle() # average curernt decreases to (~12mA), any interrupts wakes it up
|
machine.idle() # average current decreases to (~12mA), any interrupts wake it up
|
||||||
machine.sleep() # everything except for WLAN is powered down (~950uA avg. current)
|
machine.sleep() # everything except for WLAN is powered down (~950uA avg. current)
|
||||||
# wakes from Pin, RTC or WLAN
|
# wakes from Pin, RTC or WLAN
|
||||||
machine.deepsleep() # deepest sleep mode, MCU starts from reset. Wakes from Pin and RTC.
|
machine.deepsleep() # deepest sleep mode, MCU starts from reset. Wakes from Pin and RTC.
|
||||||
@ -187,7 +187,7 @@ See :ref:`network.WLAN <network.WLAN>` and :mod:`machine`. ::
|
|||||||
wifi = WLAN(mode=WLAN.STA)
|
wifi = WLAN(mode=WLAN.STA)
|
||||||
# go for fixed IP settings
|
# go for fixed IP settings
|
||||||
wifi.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
|
wifi.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
|
||||||
wifi.scan() # scan for available netrworks
|
wifi.scan() # scan for available networks
|
||||||
wifi.connect(ssid='mynetwork', auth=(WLAN.WPA2, 'mynetworkkey'))
|
wifi.connect(ssid='mynetwork', auth=(WLAN.WPA2, 'mynetworkkey'))
|
||||||
while not wifi.isconnected():
|
while not wifi.isconnected():
|
||||||
pass
|
pass
|
||||||
|
@ -17,7 +17,7 @@ Because the WiPy/expansion board does not have a housing it needs a bit of care:
|
|||||||
If you experience a lot of static electricity in your area (eg dry and cold
|
If you experience a lot of static electricity in your area (eg dry and cold
|
||||||
climates), take extra care not to shock the WiPy. If your WiPy came
|
climates), take extra care not to shock the WiPy. If your WiPy came
|
||||||
in a ESD bag, then this bag is the best way to store and carry the
|
in a ESD bag, then this bag is the best way to store and carry the
|
||||||
pyboard as it will protect it agains static discharges.
|
WiPy as it will protect it agains static discharges.
|
||||||
|
|
||||||
As long as you take care of the hardware, you should be okay. It's almost
|
As long as you take care of the hardware, you should be okay. It's almost
|
||||||
impossible to break the software on the WiPy, so feel free to play around
|
impossible to break the software on the WiPy, so feel free to play around
|
||||||
@ -46,7 +46,7 @@ Powering by an external power source
|
|||||||
The WiPy can be powered by a battery or other external power source.
|
The WiPy can be powered by a battery or other external power source.
|
||||||
|
|
||||||
**Be sure to connect the positive lead of the power supply to VIN, and
|
**Be sure to connect the positive lead of the power supply to VIN, and
|
||||||
ground to GND. There is no polarity protection on the pyboard so you
|
ground to GND. There is no polarity protection on the WiPy so you
|
||||||
must be careful when connecting anything to VIN.**
|
must be careful when connecting anything to VIN.**
|
||||||
|
|
||||||
- When powering via ``VIN``:
|
- When powering via ``VIN``:
|
||||||
|
@ -82,10 +82,10 @@ MicroPython prompt, i.e. ``>>>``. Let's make sure it is working with the obliga
|
|||||||
|
|
||||||
In the above, you should not type in the ``>>>`` characters. They are there to
|
In the above, you should not type in the ``>>>`` characters. They are there to
|
||||||
indicate that you should type the text after it at the prompt. In the end, once
|
indicate that you should type the text after it at the prompt. In the end, once
|
||||||
you have entered the text ``print("hello pyboard!")`` and pressed Enter, the output
|
you have entered the text ``print("hello WiPy!")`` and pressed Enter, the output
|
||||||
on your screen should look like it does above.
|
on your screen should look like it does above.
|
||||||
|
|
||||||
If you already know some python you can now try some basic commands here.
|
If you already know some Python you can now try some basic commands here.
|
||||||
|
|
||||||
If any of this is not working you can try either a hard reset or a soft reset;
|
If any of this is not working you can try either a hard reset or a soft reset;
|
||||||
see below.
|
see below.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user