Capacitive Touch Library
Description of the Capacitive Touch Library
|
Functions | |
uint8_t | Dominant_Element (const struct Sensor *groupOfElements, uint16_t *deltaCnt) |
Determine which element within a sensor has the largest response. |
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.
groupOfElements | Pointer to buttons to be scanned |
deltaCnt | Address to where the measurements are to be written |