Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
|
This is an example of how to communicate with the Trill Flex sensor using the Trill library. We will visualise the position of each touch in real time via the integrated Bela p5.js GUI.
This example is designed to work with the default flexible sensor which comes with Trill Flex. Connect the sensor to the base and then connect the base to the I2C pins on Bela.
The Trill sensor is scanned in an AuxiliaryTask running in parallel with the audio thread and the number of active touches, their position and size are stored in global variables.
Click the GUI button to see a visualisation of the sensor. Up to 5 touches position with touch size are displayed in the sketch.