Wakeup Core2 v1.1 by USB and GPIO possible?
-
Hello together,
I want to put the device into deep sleep and wake it up either when USB power supply is connected or when PIR (connected on Grove port) detects movement.
Is this possible?
From what I understand, axp2101 "wakes up" the device on USB-connect by simply powering on the esp32. This should only work, when esp32 power supply was switched off previously. In my context, I cannot power off esp32, because it should react on PIR detection during deep-sleep.
In my opinion, putting the esp32 in deep sleep makes it impossible to recognize switched-on USB power supply. Unfortunately, IRQ from axp2101 is not routed to esp32...
Therefore, is my request realizable? Am I missing something?Thank you