Other Parts Discussed in Thread: HDC2010
I am trying to understand if it is possible to have 3 SHT21 sensors to the same I2C module of the TM4C.
I have the sensorhub booster pack with the EK TM4C1294XL and I can see the temp and humidity
measurements printed out to the putty term window when running the humidity_sht21 project.
The application will have one task to monitor these 3 sensors and operate electronics in the equipment
based on the feedback.
Looking at the code in humidity_sht21,
// Initialize the SHT21.
//
SHT21Init(&g_sSHT21Inst, &g_sI2CInst, SHT21_I2C_ADDRESS,
SHT21AppCallback, &g_sSHT21Inst);
I understand that SHT21_I2C_ADDRESS will have three values one for each SHT21 sensor.
In the while loop, there seems nothing that makes the SHT21 sensor unique in these two commands:
SHT21Write(&g_sSHT21Inst, SHT21_CMD_MEAS_RH, g_sSHT21Inst.pui8Data, 0,
SHT21AppCallback, &g_sSHT21Inst);
SHT21DataRead(&g_sSHT21Inst, SHT21AppCallback, &g_sSHT21Inst);
How can I extend this to three SHT21 sensors?
Thank you,
Priya