Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Files Functions Variables Typedefs Macros Groups
Trill/trill-bar-led

Trill Bar LED

This project showcases an example of how to communicate with the Trill Bar sensor using the Trill library and visualise position of different touches in real time via LEDs.

The Trill sensor is scanned on an auxiliary task running parallel to the audio thread and the number of active touches, their position and size stored on global variables.

Twelve LEDs are used to represent positions on the Trill sensor. The longitude of the Trill Bar sensor will be virtually divided into 12 different sections. When a touch occurs on one of these sections, the corresponding LED will be turned on.