I want to use a sensor with nrf52 dev kit. for the same purpose I am first scanning sensor using twi_scanner example but it does not detect.
configuration used for nrf_drv_twi_config_t is :
>>
const nrf_drv_twi_config_t twi_config = {
.scl = 8,
.sda = 14,
.frequency = NRF_TWI_FREQ_250K,
.interrupt_priority = APP_IRQ_PRIORITY_HIGH,
.clear_bus_init = true
};
err_code = nrf_drv_twi_init(&m_twi, &twi_config, NULL, NULL);
I have tried the .frequency as NRF_TWI_FREQ_250K, NRF_DRV_TWI_FREQ_100K, NRF_TWI_FREQ_400K and also checked on other GPIOs but still it did not worked.
I checked the same sensor with Ardunio and Raspberry Pi , there it works fine.