This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to workout button hold effect with Bluetooth HID keyboard application?

Hi,

I have been trying to implement a Bluetooth keyboard functionality using the nRF52DK. So, from my understanding, what the example program "ble_app_hids_keyboard" present in the nRF SDK15 (for keil5) does is that, it evokes a function called "send_key_scan_press_release()". As the name suggests, it sends out commands corresponding to the press and release of the button pattern provided as argument at the time of function call.

So, my question is how would I implement a function like keyboard button press and hold using supplied SDK library?

I would also like to know what would be best possible method to identify button press, hold and release conditions? (simple polling, gpiote interrupt configured with high to low and low to high triggered). Here i am not planning to implement an entire keyboard but only want to demonstrate its working with say, 5-7 keys. Also I do admit that I have only worked for a couple of months on Nordic development boards and hence a newbie.

Related