Need more buttons

Sean McNeil sean at mcneil.com
Sat Apr 12 01:50:51 CEST 2008


Having only 2 buttons is a little bit of a constraining in some 
instances. To provide an extra button, I've modified the I2C to send 
MENU_KEY when the power button is pressed and released within a second 
and POWER_KEY when held past 1 second. It would be nice to do the same 
for the other key, but I'm not certain how to accomplish that. I'd 
assume I need a timer.

Sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcf50633.c.diff
Type: text/x-diff
Size: 2840 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080411/5adb7213/attachment.diff 


More information about the openmoko-kernel mailing list