docs/esp32: Add example for pin isolation in combination with deepsleep.

This commit is contained in:
spacemanspiff2007 2019-03-26 09:22:21 +01:00 committed by Damien George
parent 92149c8a79
commit 95b6330403
1 changed files with 9 additions and 0 deletions

View File

@ -340,6 +340,15 @@ Notes:
* Calling ``deepsleep()`` without an argument will put the device to sleep
indefinitely
* A software reset does not change the reset cause
* There may be some leakage current flowing through enabled internal pullups.
To further reduce power consumption it is possible to disable the internal pullups::
p1 = Pin(4, Pin.IN, Pin.PULL_HOLD)
After leaving deepsleep it may be necessary to un-hold the pin explicitly (e.g. if
it is an output pin) via::
p1 = Pin(4, Pin.OUT, None)
OneWire driver
--------------