Description
I am working on a project where 12 processor pins are used on an nRF52840 and I am running into the problem that these pins can not be used as pins for ending light sleep.
It would be helpful if already initialized / in use pins could be added to alarm.light_sleep_until_alarms()
.
I fear, deinitializing all 12 pins (which I use to detect user input) before "going to sleep" and reinitializing them after "wake up" takes too long and will result in losing user input events.
Or, can I initialize the PinAlarm pin-instances globally and use the values of these pins "while not sleeping" in my regular code?
PS: A hardware alternative would be to use a M74HC133 to couple all the pins and connect the output to another "wakeup-pin".
I hope that this can be avoided by software.