The latest TWI example I can find is from 4 SDK revisions ago and uses old libraries. Is there a sample using the nrf_drv_twi library that is recommended for current development?
The latest TWI example I can find is from 4 SDK revisions ago and uses old libraries. Is there a sample using the nrf_drv_twi library that is recommended for current development?
Hi martin I want to connect mpu9150 chipset via I2C. But i can't find the project what i want.
I have tested your project. But i have encountered same problem as below...
Build target 'nrf51422_xxac' compiling main.c... ....\main.c(55): warning: #223-D: function "CONCAT_2" declared implicitly const nrf_drv_twi_t p_twi_instance = NRF_DRV_TWI_INSTANCE(1); // Set up TWI instance 1 with default values ....\main.c(55): error: #20: identifier "NRF_TWI" is undefined
My MDK version is V5.14
Thanks.
Hi martin I want to connect mpu9150 chipset via I2C. But i can't find the project what i want.
I have tested your project. But i have encountered same problem as below...
Build target 'nrf51422_xxac' compiling main.c... ....\main.c(55): warning: #223-D: function "CONCAT_2" declared implicitly const nrf_drv_twi_t p_twi_instance = NRF_DRV_TWI_INSTANCE(1); // Set up TWI instance 1 with default values ....\main.c(55): error: #20: identifier "NRF_TWI" is undefined
My MDK version is V5.14
Thanks.
Hi. @NewToNordic has the answer below. I have updated my initial answer with a step-by-step explanation.