newbie question


Results 1 to 11 of 11

Thread: newbie question

Threaded View

  1. #10
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    For a password, I'd use logic like this:

    (Every key pressed sends "#" so that someone looking over your shoulder can't see what you entered.)

    password is a an array that you setup and holds the password value

    for i = 0 to 3 'for 4 digit password
    read keys
    if no key, re-read keys
    if key pressed <> password[i] then fail = 1
    send LCD "#", no CR of LF
    next i

    if fail = 0 then go forward, else LCD "FAIL" (or something), clear LCD, fail = 0 and go back to password loop


    This only the logic flow, not verbatim code.
    Last edited by JD123; - 22nd March 2008 at 16:29.
    No, I'm not Superman, but I did stay at a Holiday Inn Express last night!

Similar Threads

  1. Newbie 74hc595 question
    By manjero in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd January 2008, 22:22
  2. newbie with serial com question...
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th December 2006, 05:34
  3. Newbie Question - Info Please
    By ehoskins in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd October 2006, 14:50
  4. Greetings from Newbie and a question
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th July 2006, 15:52
  5. Newbie question
    By senojlr in forum General
    Replies: 7
    Last Post: - 11th April 2006, 21:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts