Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
|
This example shows how to communicate with the Trill Square sensor using the Trill library. It visualises the X-Y position of the touch in real time on the GUI. Unlike the simpler square-visual example, this example displays multiple touches on the sensor. Trill Square can detect multiple touches in each axis (X and Y), but it cannot detect which X touch belongs with which Y touch, so the multitouch support is limited. This example displays touches at each X-Y intersection.
In this file Trill sensor is scanned in an AuxiliaryTask running in parallel with the audio thread and the horizontal and vertical position and size are stored in global variables.
Click the GUI button to see the visualisation. Touch position and size are displayed in the sketch.