Shop OBEX P1 Docs P2 Docs Learn Events
how to code a password — Parallax Forums

how to code a password

science_geekscience_geek Posts: 247
edited 2008-05-13 04:37 in BASIC Stamp
i need to make a password application. i was thinking that the basic stamp would wait in a loop and if a button was pressed it would store it in array. if a certain button was pressed it would be like enter and it would look up the array, and find all the values entered, if they corresponded to a certain preset number then it would beep or something. i get this far, but i dont know how to look up variables in an array and then put them in order. i dont really want the code cause i want to do that part myself, but how do i do it

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-12 02:30
    Look at the RFID sample code. I believe it looks up the RFID code in a table and indicates whether it's present or not ... just what you need.
    I think there may be an article in the Nuts and Volts Columns series that you can use for a model. I'm not sure and I don't have a link, but
    take a quick look through the list of columns. It's under the Resources tab on the main Parallax webpage.
  • FranklinFranklin Posts: 4,747
    edited 2008-05-12 02:30
    You could use a keypad to input the number pressed then add them together (shifting the numbers so 4 single digits make up a 4 digit number) then check that with your password. Just a thought...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • noobmunchernoobmuncher Posts: 124
    edited 2008-05-13 04:37
    Mike Green is right there is a RFID article that will work for this unfortunately I have it printed out and i just know it is from Nuts and Volts.
Sign In or Register to comment.