matrix keypad | Cypress Semiconductor
Please guide me coding this 4x4 Matrix. Please tell me,
Will I be able to read the Button press with API- CapSense_GetMatrixButtonPos(uint32 widget, uint* pos)?
Do I need to write it for each of the BTN i.e. 16 times as it was with Normal BTNs scanned individually? Or calling it once will work; while assigning particular o/p's to each BTN, as I have done in my code?
(Please ref. it in attached project, correct & guide me wherever needed)
In this API, CapSense_GetMatrixButtonPos(uint32 widget, uint* pos)- the POINTER * pos will return 2 values, namely pos=Column position & pos=Row position. This means that it's pointing to the elements of an array, right? I want to ask, if I wish to check their Pos by row & column how can I do that? I mean I wish to have it indicating o/p LED's for corresponding ROW & COL @ BTN pressed.
Will the GetMatrixButtonPos() will give me the active button number? If it does; to check the row & column position of same button, DO I need to read the array as we do in 'C'?
OR will it also give me the row & column position with button number?
Guys Please help, waiting.
Thanks & Regards-