The sensor seems to be working just fine from what you are showing us. Can you run this 🇦
#include <Bela.h>
#include <libraries/Trill/Trill.h>
// Trill object declaration
Trill touchSensor;
void loop(void*)
{
while(!Bela_stopRequested())
{
// Read locations from Trill sensor
touchSensor.readI2C();
printf("[%d]: ", touchSensor.getNumTouches());
for(unsigned int i = 0; i < touchSensor.getNumTouches(); i++) {
printf("%.2f %.2f, ", touchSensor.touchLocation(i), touchSensor.touchSize(i));
}
printf("\n");
usleep(100000);
}
}
bool setup(BelaContext *context, void *userData)
{
// Setup a Trill Bar sensor on i2c bus 1, using the default mode and address
if(touchSensor.setup(1, Trill::BAR) != 0) {
fprintf(stderr, "Unable to initialise Trill Bar\n");
return false;
}
touchSensor.printDetails();
// Set and schedule auxiliary task for reading sensor data from the I2C bus
Bela_runAuxiliaryTask(loop);
return true;
}
void render(BelaContext *context, void *userData)
{}
void cleanup(BelaContext *context, void *userData)
{}
Do you see the touches being printed?