BareConductive / mpr121

Bare Conductive MPR121 Arduino Library
MIT License
83 stars 39 forks source link

Separate touch and release trip thresholds for each electrode? #7

Closed tonysnark closed 6 years ago

tonysnark commented 7 years ago

Readme calls out the feature "Separate touch and release trip thresholds for each electrode"

I don't see any examples on simpletouch.ino how to address individual electrode thresholds, only overall thresholds with:

MPR121.setTouchThreshold(40);

Thanks in advance for any insight.

stefandz commented 7 years ago

Hi Tony

The syntax for setting separate touch and release thresholds is detailed in the class header here

MPR121.setTouchThreshold( electrodeNumber, thresholdValue );

Hope this helps

S