Hello
I am using a I2C sensor module and I need to tranmit only address to receive data back, but I dont know how.
err_code = nrf_drv_twi_tx(&m_twi, MICS_VZ_89TE_ADDR,mics_data, sizeof(mics_data),true); APP_ERROR_CHECK(err_code); err_code = nrf_drv_twi_tx(&m_twi, 0xE1,NULL,0,true); APP_ERROR_CHECK(err_code); err_code = nrf_drv_twi_rx(&m_twi, MICS_VZ_89TE_ADDR,mics_data, 7); APP_ERROR_CHECK(err_code);
Program crashes on line 4.
Thank you for your help.