In this recipe, we will create a touch handler that will react to touch events by playing sounds and lighting up pixels. When the touch sensor gets triggered, the handler will play a sound and light up a specific pixel. When the touch sensor detects that you have released your finger, the specific pixel that was lit up will turn off.
In this way, you can hear and see the board react to each of the configured touchpads uniquely. This recipe shows a useful way to create different types of output, based on different triggered input. Many projects can come to life when you add a mix of unique audio and visual output that will react to different types of human input.