This file contains 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(); |
This file contains 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
//found this code here | |
//https://gist.github.com/speters/f889faec42b510052a6ab4be437d38ca | |
//Purpose is to simply run a memory check on ATMEGA238P to test for counterfeit parts | |
#include <avr/boot.h> | |
#define SIGRD 5 | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); |