Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 10, 2024, 12:59:03 00:59


Login with username, password and session length


Pages: [1]
Print
Author Topic: help with command inkey  (Read 6034 times)
0 Members and 1 Guest are viewing this topic.
picstudent
Active Member
***
Offline Offline

Posts: 169

Thank You
-Given: 0
-Receive: 3


« on: April 20, 2005, 06:47:46 18:47 »

:confused: i have a little question
 
the inkey command woks with an hex keypad, i have buned a litle program using inkey and lookup, but it works with 12 of the 16 keys.
 
i have his doubt, and if anyone has a routine to works as inkey, please help me
Logged

... rego ... who are are you really ?
tasosstr
Junior Member
**
Offline Offline

Posts: 75

Thank You
-Given: 95
-Receive: 14


« Reply #1 on: December 26, 2005, 01:35:09 13:35 »

Hello my friend

Try this

   Device 18F452 'Or what ever
   XTAL = 4

   Dim Key as byte

Main:
   Key = InKey
   Key = LookUp Key,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
   Print At 1,1,"Pressed : ",Dec Key
Goto Main

Best Regards,
Tasosstr
Logged
jeanninemtv
Senior Member
****
Offline Offline

Posts: 311

Thank You
-Given: 57
-Receive: 25


« Reply #2 on: December 26, 2005, 03:29:16 15:29 »

interesting,
 
i have tested inkey command in pic 16f877 at 20 Mhz  and works ok, i never tested on 4MHZ ..
Logged
tasosstr
Junior Member
**
Offline Offline

Posts: 75

Thank You
-Given: 95
-Receive: 14


« Reply #3 on: December 26, 2005, 05:11:50 17:11 »

It working and for 4Mhz..
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC