Arduino Leonardo - Electronical LockGeplaatst op
Storing the code in EEPROM memory
Now we can get a code, check it but what about saving it. Because when you reset the arduino the RAM is cleared, so we have to find another way of storing it and being able to change it without having to reupload the program. This is where the EEPROM steps in the game ...
So we have to use the EEPROM library.
Storing and Getting the code from EEPROM
So now we are able to store and get a code from the EEPROM, it's time to enable it to change the code while the program is still running on the arduino.