I wouldn’t use powerCheck.loop()
from a timer because it calls I2C and I2C is not reentrant. At least I don’t think I2C is. I’ll write the interrupt-based version of this code which is a much more efficient way to do this, anyway. I probably won’t get a chance until next week, after the 4th of July holiday in the US, however.