Hi
I am using app_button library to sense button detect, it work fine.
static void button_init(void)
{
uint32_t err_code;
//The array must be static because a pointer to it will be saved in the button handler module.
static app_button_cfg_t buttons[] =
{
{button_1, false, NRF_GPIO_PIN_PULLUP, button_event_handler},
{button_2, false, NRF_GPIO_PIN_PULLUP, button_event_handler}
};
err_code = app_button_init(buttons, sizeof(buttons) / sizeof(buttons[0]),BUTTON_DETECTION_DELAY);
APP_ERROR_CHECK(err_code);
}
now I'm try to detect difference sense and debounce time, like this
button_1, GPIOTE_SENSE_TOGGLE, debounce 1 second
button_2, GPIOTE_SENSE_LOTOHI, debounce 5 ticks
How do I configure it?
chip : nrf51822
SDK : 10
Softdevice : S110_V8