docs: Convert all cases of machine.sleep to machine.lightsleep.

This commit is contained in:
Damien George
2019-01-30 14:15:51 +11:00
parent d5d060ead9
commit 4dfcc255d5
3 changed files with 5 additions and 5 deletions

View File

@@ -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.lightsleep() # 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>`_.