Arduino Leonardo - Electronic Lock
Placed onGetting the code from user input
So like I described in part 1, we have to get all the required input from the user and check the code with the saved one.
And also check if the display doesn't overflow. That is handled by this code.
GetCode function
Checking the code
We also have to check if the code matches the saved code, so we know when we are able to open the lock and when we don't.