Keypad and Password

Hello everyone!

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?

Thanks.

Using the search bar helps.

Keypad and password

Yes man, I know, but I don't understand English very well...

I need only the code to do some modification after. Just to undersant de logic.

Thank you to read and answer the post.

If is the wrong password anything happen.

Does anything include turning the LED on, too?

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).

Thank you.

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.

Ok, thanks man! I will read.

But the hard part is to combine this thing with the kaypad and password. Its my difficulty.