Good day Everyone
Im trying to incorporate a 4x4 keypad matrix with the nrf_desktop Keyboard.conf example in Zephyr. I would like to send membrane keystrokes via USB and BLE as per original example. I have made the following changes to incorporate the keypad.
activate CAF
developer.nordicsemi.com/.../buttons.html
In the Buttons_def.h I added my rows and coulombs
In the buttons_sim_def.h I have added my keystroke array.
In the App.overlay I have added the rows and column pin configuration
Im a bit stuck now as I need to now scan the matrix return the value from the array and send as per example to BLE and USB.
I was thinking of using a timer to scan the keypad every 150ms return.
from the timer
If I look at https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/caf/caf_overview.html#c.button_event.key_id
It would seem the 4x4 keypad module could work out the box without me adding anything. It may also be worth mentioning, that the 1st column on the keypad when pressed does result in the keys 'a', 'b' , 'c', d' being transmitted. Not sure where that comes from. the other columns do not respond.
Thanks in advance as always