File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,15 @@ Power related functions
63
63
.. function :: sleep()
64
64
65
65
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
66
- the point where the sleep was requested. Wake sources are ``Pin ``, ``RTC `` and ``WLAN ``.
66
+ the point where the sleep was requested. For wake up to actually happen, wake sources
67
+ should be configured first.
67
68
68
69
.. function :: deepsleep()
69
70
70
- Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
71
- as with a reset. The reset cause can be checked to know that we are coming from
72
- ``machine.DEEPSLEEP ``. Wake sources are ``Pin `` and ``RTC ``.
71
+ Stops the CPU and all peripherals (including networking interfaces, if any). Execution
72
+ is resumed from the main script, just as with a reset. The reset cause can be checked
73
+ to know that we are coming from ``machine.DEEPSLEEP ``. For wake up to actually happen,
74
+ wake sources should be configured first, like ``Pin `` change or ``RTC `` timeout.
73
75
74
76
.. only :: port_wipy
75
77
Original file line number Diff line number Diff line change @@ -170,9 +170,11 @@ There are currently 2 kinds of errors that you might see:
170
170
2. If the heartbeat LED stays on, then there was a hard fault, you cannot
171
171
recover from this, the only way out is to press the reset switch.
172
172
173
- Power consumption in various sleep modes
174
- ----------------------------------------
173
+ Details on sleep modes
174
+ ----------------------
175
175
176
- * ``machine.idle() `` - ~12mA (in WLAN STA mode)
177
- * ``machine.sleep() `` - 950uA (in WLAN STA mode)
178
- * ``machine.deepsleep() `` - ~5uA
176
+ * ``machine.idle() ``: Power consumption: ~12mA (in WLAN STA mode). Wake sources:
177
+ any hardware interrupt, no special configuration required.
178
+ * ``machine.sleep() ``: 950uA (in WLAN STA mode). Wake sources are ``Pin ``, ``RTC ``
179
+ and ``WLAN ``
180
+ * ``machine.deepsleep() ``: ~5uA. Wake sources are ``Pin `` and ``RTC ``.
You can’t perform that action at this time.
0 commit comments