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

How can i use TWI in the Mesh SDK 2.2V

Hello, i am working on the Light switch proxy server example with SES and i want use TWI driver, and i added the files   and the path for "nrf_drv_twi.h", i put #include "nrf_drv_twi.h" in the beggining of the main file, and 

/* TWI instance ID. */
#define TWI_INSTANCE_ID 0

/* Indicates if operation on TWI has ended. */
static volatile bool m_xfer_done = false;

/* TWI instance. */
static const nrf_drv_twi_t m_twi = NRF_DRV_TWI_INSTANCE(TWI_INSTANCE_ID);

/* Buffer for samples read from temperature sensor. */
static uint8_t m_sample;

(i am using the example "twi_sensor" from nRF5_SDK_15.0 )

however, when i try compile it, 

please i need help to use it.

Thanks.  

Parents Reply Children
No Data
Related