Automatic Light Sleeping during long spi transactions and Gpio states
Posted: Mon Jun 01, 2020 6:00 pm
ePaper panels have a fairly long update delays (1 to > 4 seconds). It would be nice conserve power during the wait.
When I enable automatic light sleep, esp32 is no longer able to communicate with the ePaper panel. My guess is that the GPIO pins either float during sleep or go to 0 including the reset pin to the ePaper and mess things up.
I tried using to hold the gpio control lines to the ePaper module during sleep.
Did this by calling before delay operations that can lead to light_sleep and after.
The confusing bit in the docs is that https://docs.espressif.com/projects/esp ... gpio_num_t only talks about deep sleep behaviour of and not light sleep
I'm also not sure what would happen to the SPI lines and config power wake up from light sleep.
Thanks!
When I enable automatic light sleep, esp32 is no longer able to communicate with the ePaper panel. My guess is that the GPIO pins either float during sleep or go to 0 including the reset pin to the ePaper and mess things up.
I tried using
Code: Select all
gpio_hold_en(gpio_num_t gpio_num)
Did this by calling
Code: Select all
gpio_hold_en(gpio_num_t gpio_num)
Code: Select all
gpio_hold_dis(gpio_num_t gpio_num)
The confusing bit in the docs is that https://docs.espressif.com/projects/esp ... gpio_num_t only talks about deep sleep behaviour of
Code: Select all
gpio_hold_dis(gpio_num_t gpio_num)
I'm also not sure what would happen to the SPI lines and config power wake up from light sleep.
Thanks!