File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -59,20 +59,17 @@ Power related functions
59
59
Gates the clock to the CPU, useful to reduce power consumption at any time during
60
60
short or long periods. Peripherals continue working and execution resumes as soon
61
61
as any interrupt is triggered (including the systick which has a period of 1ms).
62
- Current consumption is reduced to ~12mA (in WLAN STA mode)
63
62
64
63
.. function :: sleep()
65
64
66
65
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
67
66
the point where the sleep was requested. Wake sources are ``Pin ``, ``RTC `` and ``WLAN ``.
68
- Current consumption is reduced to 950uA (in WLAN STA mode).
69
67
70
68
.. function :: deepsleep()
71
69
72
70
Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
73
71
as with a reset. The reset cause can be checked to know that we are coming from
74
- ``machine.DEEPSLEEP ``. Wake sources are ``Pin `` and ``RTC ``. Current consumption
75
- is reduced to ~5uA.
72
+ ``machine.DEEPSLEEP ``. Wake sources are ``Pin `` and ``RTC ``.
76
73
77
74
.. only :: port_wipy
78
75
Original file line number Diff line number Diff line change @@ -170,3 +170,9 @@ 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
+ ----------------------------------------
175
+
176
+ * ``machine.idle() `` - ~12mA (in WLAN STA mode)
177
+ * ``machine.sleep() `` - 950uA (in WLAN STA mode)
178
+ * ``machine.deepsleep() `` - ~5uA
You can’t perform that action at this time.
0 commit comments