Skip to content

Instantly share code, notes, and snippets.

@smching
Created March 30, 2016 13:48
Show Gist options
  • Select an option

  • Save smching/afeb7f17f643fcba65bc084df84d34f3 to your computer and use it in GitHub Desktop.

Select an option

Save smching/afeb7f17f643fcba65bc084df84d34f3 to your computer and use it in GitHub Desktop.
Arduino电子密码锁
void loadConfiguration() {
eeprom_read_string(USER_PASSWORD_EEPROM_ADDRESS, buf, maxPasswordLength + 1); //read USER password from EEPROM
userPassword = buf; //use this password to release door lock
eeprom_read_string(ADMIN_PASSWORD_EEPROM_ADDRESS, buf, maxPasswordLength + 1); //read ADMIN password from EEPROM
adminPassword = buf; //use this password to enter menu selection
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment