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.

CC2650: Need some example code on SPI and I2C

Part Number: CC2650

Hi,

To develop code based on BLE connectivity which has a display SPI and Accelerometer that has I2C 

I need some examples on these drivers for CC2650 lauchpad. would be thankful if I get some downloadable examples,I could't find this in the resource explorer. 

Regards,

Joe

  • Hi Joe,

    You can find documentation of these drivers within the SDK:
    software-dl.ti.com/.../index.html

    As well as examples in the SDK under examples/rtos/<board>/drivers (I don't see any SPI ones, but there's a I2C one!

    For the CC2650, documentation will be in your TI RTOS installation under products and cc26xxware_2_24_02_17393 as well as tidrivers_cc13xx_cc26xx_2_20_01_10

    And of course you can search the forums, there's a ton of material here!

    Regards,
    Rebel
  • You can refer to display example at dev.ti.com/.../ which is based on SPI driver and I2C TMP007 example at dev.ti.com/.../
  • Hi,
    I'm using CC2650 Launchpad and figured out using SPI, I modified the empty project example give in the
    resource explorer and modified it to add SPI as per the info given in the driver documentations you provided (compiled without errors).
    I have the following doubts.
    1. The BLE examples given in the BLE stack(simple peripheral) has SPI source files added in its project in a folder called Drivers?
    2. whereas I did not add anything to my empty project example other than #include <ti/drivers/SPI.h>(is this enough)?
    3. The driver examples are given for LAUNCHXL will it work on Lauchpad?
    4. My end code is a combination of both BLE and Application code with SPI and I2C, How should I proceed ?

    Regards,
    Joe