I'm trying to do a project. I think is very simple but, I want to understand the code step-by-step. And then do some modifications.
I have a matrix keypad 4x3. So, I want to create a password (with 4 characters). If I put the correct password in keypad the LED turn on. If is the wrong password anything happen.
Sure, I would like more than 1 passaword. For example, 4 correct passwords to turn on the same LED. I need to use the "case" or "switch case" (I don't know the difference.
Using de keypad library and passaword library.
Sorry, but I would like to see de code, to undertand what is happen and logic. Some one can help?
The hint was that the keypad library includes examples. The password library includes examples. It's not exactly rocket science to combine the two examples.
I'm using the LED for example, in the final project I will use a stepper. But now I need to understand the logic with password, keypad using "case" ou "switch case" (I don't know the difference).
keypad using "case" ou "switch case" (I don't know the difference).
Then, it's time you learned. A case is part of a switch statement. There is no separate use of case. Read up on switch statements, and see how they are used.