touch_pad_read_filtered() function
get filtered touch sensor counter value by IIR filter.
Arguments
touch_value
pointer to accept touch sensor value
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG Touch pad parameter error - ESP_ERR_INVALID_STATE This touch pad hardware connection is error, the value of "touch_value" is 0. - ESP_FAIL Touch pad not initialized
Notes
touch_pad_filter_start has to be called before calling touch_pad_read_filtered. This function can be called from ISR
touch_pad_read_filtered() calls 2 functions:
![]()
touch_pad_read_filtered()
touch_pad_read_filtered() reads 9 variables:
![]()
touch_pad_read_filtered()