Pg. 45 of data sheet
A little to sensitive, but otherwise working great with a Teensy 3.0!The Sensitivity Control register controls the sensitivity of a touch detection.
Moderators: adafruit_support_bill, adafruit
A little to sensitive, but otherwise working great with a Teensy 3.0!The Sensitivity Control register controls the sensitivity of a touch detection.
Code: Select all
uint8_t reg = cap.readRegister( 0x1f ) & 0x0f;
cap.writeRegister( 0x1f, reg | 0x40 ); // or whatever value you want
Code: Select all
uint8_t reg = cap.readRegister( 0x1f ) & 0x0f;
cap.writeRegister( 0x1f, reg | 0xF0 );
You only use the three lowest bits for that half of the register though, so the legal range of values is 0-7.The sensitivity settings act to scale the relative delta count value higher or lower based on the system parameters. A setting of 000b is the most sensitive while a setting of 111b is the least sensitive. At the more sensitive settings, touches are detected for a smaller delta capacitance corresponding to a “lighter” touch.