Hi,
I'm trying to use the BSP functions to do the following.
1. Detect three different button pressing types. First - singular quick press, Second - Long Press with Timeout (say 1 second), and Third - Continual Press with no Timeout
2. Quick press and long press to disconnect and sleep (I have been successful in this)
3. Continual Press to send data as long as a button is held down. (This is what I'm having trouble with)
I'm having some issues figuring out the third one to always send data while I'm pressing a button. All of the examples (from what I can tell) only generate a singular button press EVENT. In essence what I want to do I believe is as long as the button is held down, generate an event so it can be handled in the bsp_event_handler.
In examining bsp.c I've identified a potential spot to try and modify but I'm not sure if it would work or how to do it without conflicting with the long button press (1 sec) indication. I think if I could somehow use a rolling counter and with a "constant_pushed_pin_no = pin_no" it may work.
Anyone have any ideas on how this could be approached?
Thanks!