Heltec WiFi LoRa v3 and deep sleep

Hi, I am trying to isolate the GPIOs and go into deep sleep mode.

While using the rtc_gpio_isolate function I am getting error: 'GPIO_PIN_COUNT' was not declared in this scope error.

The reason for this error is that the function rtc_gpio_isolate is being declared on driver/rtc_io.h which is coming from the driver/rtc_io.h file which is in the framework-arduinoespressif32 package.

There is a dependency for driver/gpio.h file in the package. and here is the issue -

The file is declared in both framework-arduinoespressif32 and heltec esp32 libraries:

But in the heltec lib the GPIO_PIN_COUNT is not declared (it is on the esp-idf lib)

What are my options here? Anyone used rtc_gpio_isolate on the Heltec_WiFi-LoRa_v3 module?

See this comment: Good news regarding power consumption for pin-wakeup from deepsleep

1 Like

Thanks, that fixed it