rtc_gpio_isolate() function
Helper function to disconnect internal circuits from an RTC IO This function disables input, output, pullup, pulldown, and enables hold feature for an RTC IO. Use this function if an RTC IO needs to be disconnected from internal circuits in deep sleep, to minimize leakage current. In particular, for ESP32-WROVER module, call rtc_gpio_isolate(GPIO_NUM_12) before entering deep sleep, to reduce deep sleep current.
Arguments
gpio_num
GPIO number (e.g. GPIO_NUM_12).
Return value
- ESP_OK on success - ESP_ERR_INVALID_ARG if GPIO is not an RTC IO
rtc_gpio_isolate() is called by 1 function and calls 7 functions:
![]()
rtc_gpio_isolate()
rtc_gpio_isolate() reads 6 variables:
![]()
rtc_gpio_isolate()