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

Add a supplemetnary button and led on Blinky exemple

Hello, 

I have a project on: Periperal: experimental ble_app_blinky / and Central: experimental ble_app_blinky c.

So, in the function of button-event-handle,we have already a case who do with a characteristic about BLE. Now, I want to add another case (another boutton used for reset the board). And this boutton has nothing to do with BLE, so I don't need to add another 'characteristic' for it.

And my question is : when I add another boutton into the function of definition, and these two boutton always cause probleme. They work individually but they never work together.

And the problem is coming from the line ''err_code = nrf_drv_gpiote_in_init(p_btn->pin_no, &config, gpiote_event_handler);'' of the function "uint32_t app_button_init(app_button_cfg_t const *       p_buttons, uint8_t button_count, uint32_t                    detection_delay)" in app_button.c 

Thanks very much

Parents Reply Children
No Data
Related