This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Hardware TWI/I2C Example

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?

Parents
  • 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.

Reply
  • 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.

Children
Related