This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2640: Using VL6180X Module with I2C

Part Number: CC2640


Tool/software: Code Composer Studio

Hi everyone,

I'm using a CC2640R2 Launchpad and I'd like to communicate with an VL6180X Proximity and ALS module. The manufacturers of the VL6180X provides a C portable API but, TI also gives an example of a program using I2C protocol to communicate with peripherals. 

So, I'd like to know how can I mix the API and the example from TI in order to interface my VL6180X module with the CC2640R2 Lanuchpad. Do I need to modify any file of the API so as to integrate it into the I2C example project given for TI? I'm newbie in this stuff :S 

Thanks in advance!

Aarón. 

  • Aaron,

    Use the CC2640 I2C example to learn how the driver works first. I would read through i2c.h and this reference page.T

    hen try modifying the code to establish communication between the master and slave. Refer to the VL6180X's datasheet to note the slave address and the registers you'd like to read/write to.

    BR,

    Seong