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.
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?
See ble_app_hTs, not ble_app_hRs. In ble_app_hrs there is no app buttons used.
Maybe it is my false,I used is button not app_button in hrs.
I init gpiote and app timers first before my init buttons,and the current is also over 1.7. Also I test the ble_app_hts ,the current is 1.7
Can you give me a sample whiche have BLE button,that can make the current down.