The battery interrupt code above is built into device OS now, and it's much better to get the is battery powered state from device diagnostics. This code can be used instead of the code above:
rickkas7
29
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to detect Electron goes from microUSB power to battery? | 16 | 7376 | March 4, 2016 | |
| Electron Charging? | 52 | 16102 | January 30, 2019 | |
| Boron Battery Connected | 15 | 5431 | March 22, 2019 | |
| PMIC (only sometimes) not charging when battery voltage is below 3.5V | 35 | 7918 | December 11, 2018 | |
| Programmatically check for loss of VIN power | 6 | 1550 | October 10, 2019 |