From 95b6330403a1b111b88704b327d172ae00927389 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 Date: Tue, 26 Mar 2019 09:22:21 +0100 Subject: [PATCH] docs/esp32: Add example for pin isolation in combination with deepsleep. --- docs/esp32/quickref.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index e6c53b1172..5ac8aa3b2f 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -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 --------------