I do my project with the sample BEL_APP_HRS when I add a app_button? The current wii go above 4ma
My code is under here
I do my project with the sample BEL_APP_HRS when I add a app_button? The current wii go above 4ma
My code is under here
You need init gpiote and app timers first before you init buttons. See ble_app_hts project for example.
Thanks u Nikita first In APP_HRS
/**@brief Function for application main entry. */ int main(void) { // Initialize. leds_init(); buttons_init(); ble_stack_init();
timers_init();
device_manager_init();
gap_params_init();
advertising_init();
services_init();
sensor_sim_init();
conn_params_init();
// Start execution.
application_timers_start();
advertising_start();
// Enter main loop.
for (;;)
{
power_manage();
}
}
But the ble_app_hrs button worked well and it have no gpiote and it init buttons before app timers
what is the problem?
Thanks u Nikita first In APP_HRS
/**@brief Function for application main entry. */ int main(void) { // Initialize. leds_init(); buttons_init(); ble_stack_init();
timers_init();
device_manager_init();
gap_params_init();
advertising_init();
services_init();
sensor_sim_init();
conn_params_init();
// Start execution.
application_timers_start();
advertising_start();
// Enter main loop.
for (;;)
{
power_manage();
}
}
But the ble_app_hrs button worked well and it have no gpiote and it init buttons before app timers
what is the problem?