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.

sensor light i2c example

Other Parts Discussed in Thread: CC2541

Hi all

I am working with a CC2541 with the SimpleBLEPeripheral example project and i use the ambient light sensor IC BH1750FVI and i dont know if there some example that i can use as a base to modifiy.

Files like the hal_humi and humidity_service or  the other sensors of the SensorTag,  which one of this i should take, in order to use it with the light sensor

Thanks all

  • Hi Gabriel,

    You're spot on, the sensortag example we have with the SDK does showcase how to use I2C. The service and the hal files are a good example of how to interface a hardware sensor to the BLE SDK and ultimately get it over the air to another device.

    Regarding a barebones example with Simple BLE Peripheral and I2C, we don't have one. We do have pure I2C examples, take a look at the SDG, under Section 6.8. You'll have to integrate this with the BLE stack.

    Regards,
    -Rebel
  • i dont need an example with SimpleBLEPeripheral and I2c
    I need an example of I2c with a sensor light , and also if there are some lightservice.c like the humidityservice.c or something