Posted: Mon Nov 26, 2001 10:49 pm
I'm writing a little linux control
utility for my lcd.
I've got a a LK202-25.
I've got most of the functions already implemented. But I want to be able to read from the keypad (up,down,left,right,enter,f1,f2).
I don't really understand the poll_keyboard
feature. Could someone explain this to me?
currently I have.
char BUFF[80];
SENDCMD_NOARG('&');
read(fd,BUFF,80);
char *string;
string=strtok(BUFF,0x00);
cout <<"Buffer:"<<string<<endl;
return string;
This SHOULD return all the keypresses since the last mo_pollKeyboard.
Could someone help me out by explaining how this works, or provide me with c++ code?
thankx
-nico
utility for my lcd.
I've got a a LK202-25.
I've got most of the functions already implemented. But I want to be able to read from the keypad (up,down,left,right,enter,f1,f2).
I don't really understand the poll_keyboard
feature. Could someone explain this to me?
currently I have.
char BUFF[80];
SENDCMD_NOARG('&');
read(fd,BUFF,80);
char *string;
string=strtok(BUFF,0x00);
cout <<"Buffer:"<<string<<endl;
return string;
This SHOULD return all the keypresses since the last mo_pollKeyboard.
Could someone help me out by explaining how this works, or provide me with c++ code?
thankx
-nico