Hi,
I'm working on nrf51822 and mpu9250 imu sensor.i'm facing a problem,my buttons function i.e buttons leds int and mpu9250 are not working together either one is working at a time,i'm unable to find the problem.please help me..
thanks in advance.
Hi,
I'm working on nrf51822 and mpu9250 imu sensor.i'm facing a problem,my buttons function i.e buttons leds int and mpu9250 are not working together either one is working at a time,i'm unable to find the problem.please help me..
thanks in advance.
Hi Martin,sorry for the late reply below is code i'm using to initiate the GPIOTE for MPU
ret_code_t err_code;
err_code = nrf_drv_gpiote_is_init();
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_HITOLO(false);
config.pull = NRF_GPIO_PIN_PULLUP;
err_code = nrf_drv_gpiote_in_init(int_param->pin, &config, int_param->cb);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(int_param->pin, true);
please check it and let me know if any mistakes in the above lines .... Many thanks for your cooperation.
Hi Martin,sorry for the late reply below is code i'm using to initiate the GPIOTE for MPU
ret_code_t err_code;
err_code = nrf_drv_gpiote_is_init();
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_HITOLO(false);
config.pull = NRF_GPIO_PIN_PULLUP;
err_code = nrf_drv_gpiote_in_init(int_param->pin, &config, int_param->cb);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(int_param->pin, true);
please check it and let me know if any mistakes in the above lines .... Many thanks for your cooperation.