Thank you both.
The wait method works pretty well on my Libra 2 (my only device). Certainly preferable to my dodgy sleep timer. Error log is clean so far.
Binary attached if anyone wants to test. Code branch
here. I'll submit a PR if you're interested.