Sample app code to read keypad presses

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sample app code to read keypad presses

1,126 Views
Durian
Contributor I

Hi, can someone point me to some sample app code to read the keypad presses on the MX27PDK? Also I am looking for sample app code to write to the LCD driver /dev/fb0.

 

Thanks

 

0 Kudos
1 Reply

382 Views
fabio_estevam
NXP Employee
NXP Employee

You can use evtest application to read your keyboard keys on MX27PDK.

 

This package is available in the Savannah LTIB (www.bitshrine.org).

 

 
ltib -p evtest.spec -m prep
ltib -p evtest.spec -m scbuild
ltib -p evtest.spec -m scdeploy
 
- Boot Linux and then (on the MX27PDK prompt):
 
- Run the evtest application:
 
 
evtest /dev/input/event0
 
Then if you press the keyboard you should see the application displaying the name of the key you pressed.
 
Regarding your second question: you can simply do a: cat imageraw > /dev/fb0
 
Regards,
 
Fabio Estevam
0 Kudos