Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
4dfcc255
Commit
4dfcc255
authored
6 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
docs: Convert all cases of machine.sleep to machine.lightsleep.
parent
d5d060ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/esp32/quickref.rst
+1
-1
1 addition, 1 deletion
docs/esp32/quickref.rst
docs/wipy/general.rst
+1
-1
1 addition, 1 deletion
docs/wipy/general.rst
docs/wipy/quickref.rst
+3
-3
3 additions, 3 deletions
docs/wipy/quickref.rst
with
5 additions
and
5 deletions
docs/esp32/quickref.rst
+
1
−
1
View file @
4dfcc255
...
...
@@ -421,7 +421,7 @@ Note that TouchPads can be used to wake an ESP32 from sleep::
t = TouchPad(Pin(14))
t.config(500) # configure the threshold at which the pin is considered touched
esp32.wake_on_touch(True)
machine.sleep()
# put the MCU to sleep until a touchpad is touched
machine.
light
sleep() # put the MCU to sleep until a touchpad is touched
For more details on touchpads refer to `Espressif Touch Sensor
<https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/touch_pad.html>`_.
...
...
This diff is collapsed.
Click to expand it.
docs/wipy/general.rst
+
1
−
1
View file @
4dfcc255
...
...
@@ -178,7 +178,7 @@ Details on sleep modes
* ``machine.idle()``: Power consumption: ~12mA (in WLAN STA mode). Wake sources:
any hardware interrupt (including systick with period of 1ms), no special
configuration required.
* ``machine.sleep()``: 950uA (in WLAN STA mode). Wake sources are ``Pin``, ``RTC``
* ``machine.
light
sleep()``: 950uA (in WLAN STA mode). Wake sources are ``Pin``, ``RTC``
and ``WLAN``
* ``machine.deepsleep()``: ~350uA. Wake sources are ``Pin`` and ``RTC``.
...
...
This diff is collapsed.
Click to expand it.
docs/wipy/quickref.rst
+
3
−
3
View file @
4dfcc255
...
...
@@ -28,7 +28,7 @@ See the :mod:`machine` module::
machine.unique_id() # return the 6-byte unique id of the board (the WiPy's MAC address)
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.
light
sleep() # everything except for WLAN is powered down (~950uA avg. current)
# wakes from Pin, RTC or WLAN
machine.deepsleep() # deepest sleep mode, MCU starts from reset. Wakes from Pin and RTC.
...
...
@@ -163,7 +163,7 @@ See :ref:`machine.RTC <machine.RTC>` ::
rtc_i = rtc.irq(trigger=RTC.ALARM0, handler=alarm_handler, wake=machine.SLEEP)
# go into suspended mode waiting for the RTC alarm to expire and wake us up
machine.sleep()
machine.
light
sleep()
SD card
-------
...
...
@@ -199,7 +199,7 @@ See :ref:`network.WLAN <network.WLAN>` and :mod:`machine`. ::
# enable wake on WLAN
wlan.irq(trigger=WLAN.ANY_EVENT, wake=machine.SLEEP)
# go to sleep
machine.sleep()
machine.
light
sleep()
# now, connect to the FTP or the Telnet server and the WiPy will wake-up
Telnet and FTP server
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment