- Edited
Hi,
In my Arduino/C++ program, I've created a CustomSlider to generate the centroids from a TRILL Flex strip.
It's based on the demo here (https://github.com/BelaPlatform/Trill-Arduino/blob/master/examples/custom-slider/custom-slider.ino), and right now I'm just testing it with the default TRILL Flex strip (i.e. my sliderPads array is just the default ordered array):
const uint8_t NUM_TOTAL_PADS = 30;
CustomSlider slider;
uint8_t sliderPads[NUM_TOTAL_PADS] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29};
void setup(){
slider.setup(sliderPads, NUM_TOTAL_PADS);
...
...
}
I can use slider->touchSize()
and slider->touchLocation()
to grab the positions, which is working reliably and repeatably!
But I don't know how to interpret the numbers?
e.g. touchlocation seems to have a range of 0..3712, and touchSize is roughly 0..4000 but occasionally much larger.
I assume they are related to the prescaler, scan speed and resolution values but I can't find any documentation anywhere.
How should I interpret these numbers?
Thanks!
George