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

How the change the outcome of a button press action in nRF51 DK using app_button?

Hello!

I just want to change the outcome of Button 1 press action in my nRF 51 Dk. For example, instead of toggling led 1, I want to toggle pin 5. How to actually do that? I fiddled with the code, but up to now, no advance.

P.s.: I am using ble_app_hrs_c as my base code.

Thanks!!

Parents
  • Hello, Martin. Thanks for the comment.

    1. Yes! But I don't know where in the code (file and code line) to do that - neither how, as input push button uses gpiote + app_button + app_timer layers and I'm uncertain how everything comes together...
    2. This could be usefull to my application, but I don't want to that now.
    3. Yes, sensor board = ble_app_hrs example. Sensor + Collector working fine in the boards.
Reply
  • Hello, Martin. Thanks for the comment.

    1. Yes! But I don't know where in the code (file and code line) to do that - neither how, as input push button uses gpiote + app_button + app_timer layers and I'm uncertain how everything comes together...
    2. This could be usefull to my application, but I don't want to that now.
    3. Yes, sensor board = ble_app_hrs example. Sensor + Collector working fine in the boards.
Children
No Data
Related