Part Number: CC2541
Tool/software: TI C/C++ Compiler
Good Day All,
I am currently working on a project with CC2541 with SimpleBLEperipheral as a base project. Now i want to use its I2C function with Si7021-A20 Humidity/Temperature sensor which as i check, is almost identical with SHT21 which the project "sensorTag" is using. I tried copying all the functions ( HalHumiReadData(), HalHumiWriteData(), HalHumiSelect(), HalHumiReadMeasurement(), HalHumiExecMeasurementStep(), readHumData()) and event within the sensorTag for the SHT21 sensor to my project. The only difference is the event is already running in boot-up and did SetParameter for the hData so that it will automatically notify the readings. No problems encountered with the compilation since i included necessary header files, etc. But i can't seem to make it work, i read zero values in the hData.
Thanks.