Inkplate-Arduino-library icon indicating copy to clipboard operation
Inkplate-Arduino-library copied to clipboard

Detect if powered by battery or USB

Open zBart opened this issue 1 year ago • 0 comments

I was wondering if there is some way to determine if the device is currently powered by a battery or via USB. For example: to show a charging indicator, or to change how often I put the device into sleep.

Also, is it possible to wake the device when USB power gets plugged in while the device is in deep sleep? For example: battery level gets below X, I show a message and put the device into sleep for a day, but when the power gets plugged in I'd like it to wake up instantly (so I can show a charging indicator).

zBart avatar Mar 05 '24 12:03 zBart