Capacitive Touch Library
Description of the Capacitive Touch Library
Functions

CTS_support

CTS_API

Functions

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

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
 All Files Functions