Capacitive Touch Library
Description of the Capacitive Touch Library
 All Files Functions Variables Groups
Functions
Support Group
API Group

Functions

uint8_t Dominant_Element (const struct Sensor *groupOfElements, uint16_t *deltaCnt)
 Determine which element within a sensor has the largest response.
 

Detailed Description

Function Documentation

uint8_t Dominant_Element ( const struct Sensor *  groupOfElements,
uint16_t *  deltaCnt 
)

Determine which element within a sensor has the largest response.

     This function compares and normalizes the change in capacitance to
     determine which element has the dominant response.  The deltaCnt
     values for each element that exceed the threshold are also 
     converted from a 'raw' measurement to a percentage of the maximum 
     response.
Parameters
groupOfElementsPointer to buttons to be scanned
deltaCntAddress to where the measurements are to be written
Returns
result index to the element which is dominant