Topic: how does bend switch work

hi,

I have been working on creating a virtual hardware model for Chumby. Right now the chumby software runs fine on my virtual chumby, but I have some problems with the bend switch utilities.

I have read the document which indicates that the bend switch is connect to the pin KP_ROW0 of Keypad Port. I'm wondering that if the bend switch is pressed, will this generate an interrupt from the peripheral Keypad to the processor or not? How does the driver handle this bend switch event? What kind of data is expected read from the register KP_KPSR (keypad status register).

can anyone help me? thanks a lot.

cheers
bellpxw

Re: how does bend switch work

hi,

It seems that my "virtual" bend switch works. At least, the flashplayer notices there's switch event when the bend switch is depressed. However, it can not change from the displaying widgets mode to control panel mode. If the bend switch is depressed, at the same time there are some output messages
============
imxfb_proc_write_alpha
imxfb_proc_write_key_en
imxfb_proc_write_alpha
imxfb_proc_write_key_en
imxfb_proc_write_key 80c00000
============

what goe wrong if I get these output messages? Can anyone help me again?  Thanks!