Sample app code to read keypad presses

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Sample app code to read keypad presses

1,744 次查看
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 项奖励
回复
1 回复

1,000 次查看
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 项奖励
回复