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

nrf51822EK on kit button triggering

I have burnt ble-app-multilink peripheral code on my nrf51822ek. What happens currently is dat when i press button on kit, on kit led turns on . when i press it again, it turns off.

I require that when button is in pressed state it, the led should remain on and when it is released it should turn off.

How is this possible ? any sort of help will be appreciated.

Parents
  • Hi

    It looks like the Board Support Package (bsp) used in the example to handle the button events only supports button presses or button releases. In the example the button event handler is configured to trigger only on button pushes. So to make your peripheral to act like want you will need to write your own gpiote interrupt routine that triggers on both events.

Reply
  • Hi

    It looks like the Board Support Package (bsp) used in the example to handle the button events only supports button presses or button releases. In the example the button event handler is configured to trigger only on button pushes. So to make your peripheral to act like want you will need to write your own gpiote interrupt routine that triggers on both events.

Children
Related