Perhaps the knowledge base and the naming of the examples are a bit misleading: when using the general-
examples, you should follow the instructions in the example's own description:
This example will work with all types of Trill sensor and will allow you to adjust
the sensitivity and threshold settings.
The first thing to do is make sure that the correct sensor type is
given to `touchSensor.setup();`.
so you need to scroll down to this line in setup()
:
if(touchSensor.setup(1, Trill::CRAFT) != 0) {
and replace Trill::CRAFT
with Trill::SQUARE
:
if(touchSensor.setup(1, Trill::SQUARE) != 0) {