#include "CirquePinnacle.h"
void PinnacleTouch::setAdcGain(uint8_t sensitivity);

Sets the ADC (Analog to Digital Converter) attenuation (gain ratio) to enhance performance based on the overlay type. This does not apply to AnyMeas mode. However, the input value specified can be written while setDataMode() is given PINNACLE_ANYMEAS, but there is no guarantee that it will “stick” as it may be overridden by the Pinnacle ASIC (specification sheet does not imply either way).

Parameters:
uint8_t sensitivity

This byte specifies how sensitive the ADC component is. It must be in range [0, 3]. Where 0 means most sensitive, and 3 means least sensitive. A value outside this range will default to 0.

Tip

The official example code from Cirque for a curved overlay uses a value of 1.