Skip to content

Instantly share code, notes, and snippets.

@msraynsford
Created March 12, 2018 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msraynsford/c252f3697477c2553f933f253f12055b to your computer and use it in GitHub Desktop.
Save msraynsford/c252f3697477c2553f933f253f12055b to your computer and use it in GitHub Desktop.
bool checkFlag() {
flag = EEPROM.read(FLAGADDRESS);
return flag == FLAGSET;
}
void writeFlag(uint32_t value) {
flag = value;
EEPROM.write(FLAGADDRESS, flag);
EEPROM.commit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment