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

I2C: How can I read and write data from my VL6180X sensor through nrf51 kit under nrf_drv_twi_tx() and rx() functions?

The default I2C address of my sensor is 0x29 (7-bit). If the least significant bit is low (0x52) the message is a master write to the slave. If the lsb is set (0x53) then the message is a master read from the slave. The part of my code is below. I need help on how to specify these adresses under nrf_drv_twi_tx() and nrf_drv_twi_rx() functions to read the data from my sensor.

image description image description

Related