INT16 MTouchDebugThreshold(UINT8 sensorNumber)

mTouch

mTouch Cap Library Help
INT16 MTouchDebugThreshold(UINT8 sensorNumber)

 

Description:This function waits for the sensor press event and returns an optimal sensor threshold. The threshold should be about 12.5% percents of the signal(delta) amplitude. Before measurement the sensor must be initialized with MTouchSetSensor(...). Use the threshold result to intialize sensor (see parameter "threshold" in MTouchSetSensor(...) function). 

Parameters: 

  • sensorNumber - sensor number.

Returns: the function returns an optimal sensor threshold value.

Microchip mTouchCap Software Library 1.41 - [July 18, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.