Entering the number from keypad...


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27

    Default Entering the number from keypad...

    Hi,
    I want to enter the number from keypad and reuse it .
    Forexample:

    volume1 = ....
    volume2= ...
    volume 3=....
    ı want to enter the value (number ) from keypad then use it .How can ı write and read that values from eeprom
    Thanks.

  2. #2
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile The forum’s search feature.

    Hi Turkuaz,

    You can use the forum’s search feature to look for posts by “key-word”.

    For instance, keypad brings up all the posts with the word keypad in them.

    Like this one:
    http://www.picbasic.co.uk/forum/showthread.php?t=6128

    write read eeprom finds previous posts like this one:
    http://www.picbasic.co.uk/forum/showthread.php?p=34724

    hope that helps,
    -Adam-
    Last edited by Pic_User; - 27th April 2007 at 04:08. Reason: Added second reference
    Ohm it's not just a good idea... it's the LAW !

  3. #3
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default entering number

    Thanks for your help
    But ı red all thread last night. My problem is not that how ı can show numbers on LCD.I did that and use it.
    My problem is when ı enter number for a variable from keybord ı want to write it to eeprom than ı want to use number for another calculation in program so how can ı write that number and read when it necessery
    Thanks alot

  4. #4
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by turkuaz View Post
    Thanks for your help
    But ı red all thread last night. My problem is not that how ı can show numbers on LCD.I did that and use it.
    My problem is when ı enter number for a variable from keybord ı want to write it to eeprom than ı want to use number for another calculation in program so how can ı write that number and read when it necessery
    Thanks alot
    getword:
    value = 0
    for x = 0 to 3
    Gosub getkey ' Get a key from the keypad
    lcdout I,Line2 + x,#key ' Display ASCII key number
    value=Value*10+key
    next


    WRITE 0 , value.BYTE0 ' SAVE The value (word)
    WRITE 1 , value.BYTE1
    return

Similar Threads

  1. 4x4 keypad Help
    By aaliyah1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th October 2010, 16:34
  2. Keypad input test
    By Kalind in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th October 2008, 04:00
  3. Need help in matrix keypad coding
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th May 2008, 13:16
  4. Keypad unlock (as in garage door possibly)
    By Fred in forum Code Examples
    Replies: 5
    Last Post: - 2nd April 2006, 04:26
  5. Keypad entry?
    By TONIGALEA in forum General
    Replies: 3
    Last Post: - 8th August 2004, 16:10

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