Capsense interrupt | Cypress Semiconductor
I am working on the Pioneer Kit PSoc4 and I want to know little more about capsense. I configered 5 buttons.
Is there another way to detect if one from the buttons is pressed than the CapSense_CheckIsWidgetActive(CapSense_BUTTON0__BTN) command?
For example to put them in a array that it is possible to read them with a for next loop. Now I have to put 5 if then loops to check every button separately.
How do I generate a interrupt when one from the buttons is pressed. Or how can I use the Capsense_INT.c to handle all pressed buttons?
For example I worked with the ADC_INT.c this worked very fine. Also other interrupt are working as expected. Except the Capsense isn't working like expected.
My Goal is to get the Capsense code out the MAIN.c and to put it in a ISR what only runs when a button is pressed. In this ISR i want only a few lines to buffer the pressed key.
Thanks in advance,