PDA

View Full Version : Entering the number from keypad...



turkuaz
- 26th April 2007, 21:52
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.

Pic_User
- 26th April 2007, 22:30
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-

turkuaz
- 27th April 2007, 07:38
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

savnik
- 27th April 2007, 09:02
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