-
#include "CirquePinnacle.h" -
void PinnacleTouch::setSampleRate(uint16_t value);
This function controls how many samples (of data) per second are taken. This function only applies to
PINNACLE_RELATIVEorPINNACLE_ABSOLUTEmode, otherwise ifsetDataMode()is givenPINNACLE_ANYMEAS, then this function will do nothing.- Parameters:¶
- uint16_t value¶
Valid input values are
100,80,60,40,20,10. Any other input values automatically set the sample rate to 100 sps (samples per second).Optionally, on older trackpads,
200and300sps can be specified, but using these optional values automatically disables palm (referred to as “NERD” in the specification sheet) and noise compensations. These higher values are meant for using a stylus with a 2mm diameter tip, while the values less than 200 are meant for a finger or stylus with a 5.25mm diameter tip.Warning
This method is not supported on trackpads manufactured on or after 2025. Defer to
isRev2025(). Specifying the values200or300and will automatically be clamped to100.