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

APP_BUTTON Event Not Firing

Sorry but I've been stuck on this for a few days now and I have to give up and ask for help.

I'm attempting to set LED0 when BUTTON_0 is pressed and LED1 when BUTTON_1 is pressed but the button_event_handler(...) is never called.

I initialize APP_TIMER, APP_GPIOTE, APP_BUTTON and call the app_button_enable() function but still cannot detect button presses.

I know the code is downloaded correctly to the flash because I can debug it and also have UART working so I get output.

BTW I'm using GCC + Eclipse with the NRF51822 Eval Kit.

Can anyone give me a hint what I'm doing wrong?

Thank you.

Hello World.zip

Parents Reply Children
No Data
Related