- Edited
Hi, I am using trill hub that connects to three different trills. I saw the example of multiple device seems to use a loop to scan through all the i2c path:
void readLoop(void*)
{
while(!Bela_stopRequested())
{
for(unsigned int n = 0; n < gTouchSensors.size(); ++n)
{
Trill* t = gTouchSensors[n];
t->readI2C();
}
usleep(50000);
}
}
Is it mandatory to use this method for reading data from multiple trill using the Trill Hub?