The usual response is to simply write cap.setThresholds(12, 6) or whatever you choose, but the values set in the .cpp file still dominate. I've modified the .h and .cpp files and even used these files to make a secondary library to set threshold values in separate from the Adafruit_MPR121.cpp file. I currently am not running into any issues modifying the .cpp file, but considering that the library should remain static for the most part, it would be nice to know how to have the arduino sketch, set the touch sensitivity.
For example, let's say I want to set lower thresholds. In the .cpp file I modify the line:
Code: Select all
setThreshholds(12, 6);
Code: Select all
setThreshholds(5, 1);
Code: Select all
Adafruit_MPR121 cap = Adafruit_MPR121();
Code: Select all
cap.setThresholds(5, 1);
Ultimately, this item is being used under layer of faux fur. We've determined the thresholds for setThreshholds to be (1, 0). This is the only setting in which the sensor is triggered and gives no false positives. Hopefully this gives a better idea. It is a work project, so I'm not allowed to disclose too much information, but I assure you it's a really cool project.
Any help would be greatly appreciated, and though I'd like to send cookies, they'd probably all wind up in my stomach before I get to UPS.