add explaination regarding baseline update

pull/2/head
xyqyear 2023-07-16 08:49:21 +08:00
parent 31dca2c188
commit b30644ac92
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ void MprSetup(Adafruit_MPR121 cap)
// FDL is the filter delay count limit, the baseline will be updated after this many samples
// if a touch is detected mid way, the update is cancelled
// NHD is the noise half delta, the baseline will be changed this much when the above conditions are met
// please note that the actual update delay is affected by the second stage filter
cap.writeRegister(MPR121_MHDR, MHDR);
cap.writeRegister(MPR121_NHDR, NHDR);
cap.writeRegister(MPR121_NCLR, NCLR);