Ondrej Sienczak
Ondrej Sienczak
> > > i just submitted #9578 about esp32-c3 wake pin not working.hopefully this commit will get merged soon.btw any updates on which pin can be used for wakeup? currently...
> > Any of them. You can use any pin to set it as wake-up source. Pin is assigned to wake-up sources bitmap. When you attempt to sleep, micropython checks...
There are some missunderstandings and some faulty use. As I originally wanted to preserve interface same as with regular esp32, I decided to ignore `ext0` and use `ext1` as `gpio`...
Anyway, I patched GPIO vs. EXT1 issue - 848805e70154cd391c3e23a7f9288f40720220b5: ``` import esp32 import machine from time import sleep_ms rc2str = {getattr(machine, i): i for i in ('PWRON_RESET', 'HARD_RESET', 'WDT_RESET', 'DEEPSLEEP_RESET',...
I also found the reason why you got "invalid pin". There is embedded check in pins assignment which does not fit on ESP32C3. I'll fix it.
I made second patch (741129355bd32d01929d7b400bbafbffed638e44) related to EXT1 (GPIO) wake-up capable pins. Finaly it seems that there is no need to change original ESP32 inteface. @puppet13th - could you please...
> > > > have retest your latest changes but still got different result: > > i mean time i made changes at modmachine.c: > > ```c > #if CONFIG_IDF_TARGET_ESP32C3...
> from the [reference](https://docs.espressif.com/projects/esp-idf/en/v4.3/esp32c3/api-reference/system/sleep_modes.html#_CPPv428esp_sleep_enable_gpio_wakeupv) look like any gpio pin can be used as (lightsleep) wake up pin. It seems to be true. There is used different approach for deep sleep...
I have modified approach for setting pins for the case of deep and light sleep - 4c7c2b090d8ea4c2db59bfe70d44bf4bd92370c0 @puppet13th - I found that all works perfectly only when I set all...
> what do you mean? > > > I found that all works perfectly only when I set all the stuff just once after reset. > > all look good...