Adafruit_MPR121_mod/Adafruit_MPR121_mod.cpp
uint16_t Adafruit_MPR121_mod::filteredDataAveraged(uint8_t t, uint8_t n) {
  uint16_t avg = 0;
  uint16_t n2 = 1 << n;
  for (uint8_t i = 0; i < n2; i++) {
    avg += filteredData(t);
  }
  avg = avg >> n;
  return avg;
}
/*!
 *  @brief      Read the filtered data from channel t, 2^n times, and return the average. The ADC raw data outputs
 *              run through 3 levels of digital filtering to filter out the high
 * frequency and low frequency noise encountered. For detailed information on
 * this filtering see page 6 of the device datasheet.
 *  @param      t
 *              the channel to read
 *  @param      n
 *              2^n samples taken
 *  @returns    the filtered average reading as a 10 bit unsigned value
 */
@brief      Read the filtered data from channel t, 2^n times, and return the average. The ADC raw data outputs
run through 3 levels of digital filtering to filter out the high
frequency and low frequency noise encountered. For detailed information on
this filtering see page 6 of the device datasheet.
@param      t
the channel to read
@param      n
2^n samples taken
@returns    the filtered average reading as a 10 bit unsigned value
@brief Read the filtered data from channel t 2^n times and return the average . The ADC raw data outputs run through 3 levels of digital filtering to filter out the high frequency and low frequency noise encountered . For detailed information on this filtering see page 6 of the device datasheet . @param t the channel to read @param n 2^n samples taken @returns the filtered average reading as a 10 bit unsigned value
uint16_t Adafruit_MPR121_mod::filteredDataAveraged(uint8_t t, uint8_t n) {
  uint16_t avg = 0;
  uint16_t n2 = 1 << n;
  for (uint8_t i = 0; i < n2; i++) {
    avg += filteredData(t);
  }
  avg = avg >> n;
  return avg;
}
uint16_t Adafruit_MPR121_mod :: filteredDataAveraged ( uint8_t t , uint8_t n ) { uint16_t avg = 0 ; uint16_t n2 = 1 << n ; for ( uint8_t i = 0 ; i < n2 ; i ++ ) { avg += filteredData ( t ) ; } avg = avg >> n ; return avg ; }
@brief      Read the filtered data from channel t, 2^n times, and return the average.
@brief Read the filtered data from channel t 2^n times and return the average .