When entering deep sleep, the user may want to set certain pins to be in a particular state. For example the I2C-power pin on a Feather ESP32-S2 might beenabled to, say, allow an external sensor to run during deep sleep, or disabled to minimize sleep power.
Discussion with @ladyada yielded the idea of passing a list of DigitalInOut's to alarm.exit_and_deep_sleep(). The state of those pins would be preserved.
Subject to refinement as implementation progresses.
When entering deep sleep, the user may want to set certain pins to be in a particular state. For example the I2C-power pin on a Feather ESP32-S2 might beenabled to, say, allow an external sensor to run during deep sleep, or disabled to minimize sleep power.
Discussion with @ladyada yielded the idea of passing a list of DigitalInOut's to
alarm.exit_and_deep_sleep(). The state of those pins would be preserved.Subject to refinement as implementation progresses.