mfgarvin / DOC_Mapboard

3 stars 0 forks source link

To do - hibernate & resume for hourly adoration #5

Closed mfgarvin closed 1 year ago

mfgarvin commented 2 years ago

Create a hibernate function and call it here - e.g., if there's adoration from 11am-7pm, and there's a noon mass, hibernate (store) the adoration state and clear it from the active ledStatus to let something else run. https://github.com/mfgarvin/DOC_Mapboard/blob/e64813cc0f930e13f55a4358c0121b42559272d4/main.py#L314

Also, create a resume function and call it here - e.g., when something wraps up, see if there's a hibernating value for that id waiting to be woken up. If so, set it and call the proper functions. https://github.com/mfgarvin/DOC_Mapboard/blob/e64813cc0f930e13f55a4358c0121b42559272d4/main.py#L328

mfgarvin commented 1 year ago

Added with commit ac07f0b