Reading Keypad on GLK 1964
Posted: Tue Jan 31, 2012 4:20 pm
I was following the app note but and my lcd wont read key pressed from the LCD keypad. It would read only from my computer keyboard. Any help on how I would read from the keypad. I'm running Ubuntu and trying to create a menu system.
int PollKeyPress(char key[])//Send the poll command and read a 1 byte, report errors
{
unsigned char command[] = {254, 38};
if(write(lcd, &command, sizeof(command)))
return(read(lcd, key, sizeof(key)));
else
return(false);
}
Thanks,
-Kayla
int PollKeyPress(char key[])//Send the poll command and read a 1 byte, report errors
{
unsigned char command[] = {254, 38};
if(write(lcd, &command, sizeof(command)))
return(read(lcd, key, sizeof(key)));
else
return(false);
}
Thanks,
-Kayla