This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String str1,str2; | |
bool onUSB = false; | |
bool onBattery = false; | |
bool lowBattery = false; | |
unsigned long pwrCheckTimeStart;//to check power every 10sec | |
void setup() { | |
// INITIAL POWER CHECK | |
int powerSource = System.powerSource(); |