nrf_drv_gpiote_in_config_t in_config_lotohi = GPIOTE_CONFIG_IN_SENSE_LOTOHI(false);
if(!nrf_drv_gpiote_is_init())
{
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
}
err_code = nrf_drv_gpiote_in_init(GPIO_AC_INTP1_PIN, &in_config_lotohi, key_event_handler);
- my code is just like above
- I know the difference between IN EVENT and PORT event
- If I use nrf_drv_gpiote_init() with GPIOTE_CONFIG_IN_SENSE_LOTOHI(false), that means I use Port Event? or same current consumption as Port Event? or it use IN EVENT?