GPIO (USERKEY)

Hussain Aftab 2009-11-07 11:55:21 Link
Hi,

I want to use GPIO for keypad other than the 6 keys defined in 

    "userkey.cpp"
Eg:
in user it is defined for key: K1

//********************************************************************//
        //EINT8 - K1 - VK_TAB - 0x09
        if(s2440IOP->rEINTMASK&1<<8)
  {
  RETAILMSG(1,(TEXT("UserKeyProcessThread Processing! -K1\r\n")));
  keybd_event(VK_TAB ,0x09, 0, 0);
  Sleep(30);
  keybd_event(VK_TAB ,0x09, KEYEVENTF_KEYUP, 0);
  InterruptDone(SYSINTR_USER_KEY);
  }
//********************************************************************//


here the key K1 is assigned the TAB key
and the GPIO used is EINT8

I only want to know that if i want to use any other GPIO
such as EINT0,1,.. etc
What editing should i do in the code above..???

Thanxs in advance...

Regards
Hussain Aftab

abdullah 2009-11-17 10:02:50 Link
just see the data sheet and you can do very easily i have designed a
complete keyboard with around 100 key functions its simple

best regards
Mohazzab

moh_bim@yahoo.com


for further help you can email me

Yalcin 2010-05-17 16:08:34 Link
Hi Mohazzab,

Can you please help me for the keyboard you mention in friendlyram.net 
You are saying that there is information in datasheet folder to design
keybord, they all complicated and i could not understant any part of it  in
fact I need a kind of keyboard with around 100 key entry. 

Is there any way you can help me with this.


My email address : yalcin2005@gmail.com

Regards


Yalcin

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 4240