|
| 1 | +menu "Touch Slider Sensor Configuration" |
| 2 | + |
| 3 | + config TOUCH_SLIDER_SENSOR_DEBUG |
| 4 | + bool "Enable touch slider sensor debug mode" |
| 5 | + default n |
| 6 | + help |
| 7 | + Enable touch slider sensor debug mode. |
| 8 | + |
| 9 | + config TOUCH_SLIDER_SENSOR_CALIBRATION_TIMES |
| 10 | + int "Calibration times" |
| 11 | + default 50 if !IDF_TARGET_ESP32 |
| 12 | + default 20 |
| 13 | + range 10 1000 |
| 14 | + help |
| 15 | + Number of readings used for initial calibration. |
| 16 | + |
| 17 | + config TOUCH_SLIDER_SENSOR_DEBOUNCE_INACTIVE |
| 18 | + int "Debounce inactive count" |
| 19 | + default 3 if !IDF_TARGET_ESP32 |
| 20 | + default 1 |
| 21 | + range 1 50 |
| 22 | + help |
| 23 | + Number of consecutive readings below threshold needed to confirm inactive state. |
| 24 | + |
| 25 | + config TOUCH_SLIDER_SENSOR_POLLING_INTERVAL |
| 26 | + int "Polling interval (ms)" |
| 27 | + default 10 |
| 28 | + range 5 100 |
| 29 | + depends on IDF_TARGET_ESP32 |
| 30 | + help |
| 31 | + Interval between polling touch readings in milliseconds (for ESP32 only). |
| 32 | + |
| 33 | + config TOUCH_SLIDER_SENSOR_SMOOTH_COEF_X1000 |
| 34 | + int "Smooth coefficient (/1000)" |
| 35 | + default 200 if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32S2 |
| 36 | + default 300 if IDF_TARGET_ESP32 |
| 37 | + default 600 if IDF_TARGET_ESP32P4 |
| 38 | + default 500 |
| 39 | + range 0 1000 |
| 40 | + help |
| 41 | + Coefficient for smooth filter, multiplied by 1000. |
| 42 | + For example, 200 means 0.2 |
| 43 | + |
| 44 | + config TOUCH_SLIDER_SENSOR_BASELINE_COEF_X1000 |
| 45 | + int "Baseline coefficient (/1000)" |
| 46 | + default 100 if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32S2 |
| 47 | + default 150 if IDF_TARGET_ESP32 |
| 48 | + default 200 if IDF_TARGET_ESP32P4 |
| 49 | + default 100 |
| 50 | + range 0 1000 |
| 51 | + help |
| 52 | + Coefficient for baseline filter, multiplied by 1000. |
| 53 | + For example, 100 means 0.1 |
| 54 | + |
| 55 | + config TOUCH_SLIDER_SENSOR_MAX_P_X1000 |
| 56 | + int "Maximum positive change ratio (/1000)" |
| 57 | + default 200 |
| 58 | + range 0 1000 |
| 59 | + help |
| 60 | + Maximum positive change ratio from baseline, multiplied by 1000. |
| 61 | + For example, 200 means 0.2. 0 means no limit. |
| 62 | + |
| 63 | + config TOUCH_SLIDER_SENSOR_MIN_N_X1000 |
| 64 | + int "Minimum negative change ratio (/1000)" |
| 65 | + default 200 |
| 66 | + range 0 1000 |
| 67 | + help |
| 68 | + Minimum negative change ratio from baseline, multiplied by 1000. |
| 69 | + For example, 200 means 0.2. 0 means no limit. |
| 70 | + |
| 71 | + config TOUCH_SLIDER_SENSOR_NEGATIVE_LOGIC |
| 72 | + bool "Using negative logic to detect touch" |
| 73 | + default n |
| 74 | + help |
| 75 | + Using both positive and negative threshold to detect touch. |
| 76 | + |
| 77 | + config TOUCH_SLIDER_SENSOR_NOISE_P_SNR |
| 78 | + int "Positive noise SNR" |
| 79 | + default 4 |
| 80 | + range 3 100 |
| 81 | + help |
| 82 | + Signal-to-noise for positive Noise |
| 83 | + |
| 84 | + config TOUCH_SLIDER_SENSOR_NOISE_N_SNR |
| 85 | + int "Negative noise SNR" |
| 86 | + default 4 |
| 87 | + range 2 100 |
| 88 | + help |
| 89 | + Signal-to-noise for negative Noise |
| 90 | + |
| 91 | + config TOUCH_SLIDER_SENSOR_RESET_COVER |
| 92 | + int "Reset count from cover" |
| 93 | + default 1000 if !IDF_TARGET_ESP32 |
| 94 | + default 300 |
| 95 | + range 0 5000 |
| 96 | + help |
| 97 | + Reset count if cover is detected. 0 means no reset. |
| 98 | + |
| 99 | + config TOUCH_SLIDER_SENSOR_RESET_CALIBRATION |
| 100 | + int "Reset count from calibration error" |
| 101 | + default 3 |
| 102 | + range 0 100 |
| 103 | + help |
| 104 | + Reset count for negative threshold. 0 means no reset. |
| 105 | + |
| 106 | + config TOUCH_SLIDER_SENSOR_RAW_BUF_SIZE |
| 107 | + int "Raw buffer size" |
| 108 | + default 40 if !IDF_TARGET_ESP32 |
| 109 | + default 10 |
| 110 | + range 10 100 |
| 111 | + help |
| 112 | + Size of raw data buffer. |
| 113 | + |
| 114 | + config TOUCH_SLIDER_SENSOR_SCALE_FACTOR |
| 115 | + int "Scale factor" |
| 116 | + default 100 if !IDF_TARGET_ESP32 |
| 117 | + default 1000 |
| 118 | + range 10 1000 |
| 119 | + help |
| 120 | + Scale factor for threshold calculation. |
| 121 | + |
| 122 | + config TOUCH_SLIDER_SENSOR_QUANTIFY_LOWER_THRESHOLD_X1000 |
| 123 | + int "Quantify lower threshold (/1000)" |
| 124 | + default 300 |
| 125 | + range 0 10000 |
| 126 | + help |
| 127 | + Ratio of activation to quantify as 0. |
| 128 | + |
| 129 | + config TOUCH_SLIDER_SENSOR_BENCHMARK_UPDATE_TIME |
| 130 | + int "Benchmark update time" |
| 131 | + default 500 |
| 132 | + range 100 10000 |
| 133 | + help |
| 134 | + Delay after sensor is released before benchmark is updated. |
| 135 | + |
| 136 | + config TOUCH_SLIDER_SENSOR_POS_FILTER_SIZE |
| 137 | + int "Position filter size" |
| 138 | + default 10 |
| 139 | + range 1 100 |
| 140 | + help |
| 141 | + Window size of slider position IIR filter. |
| 142 | + |
| 143 | + config TOUCH_SLIDER_SENSOR_POS_FILTER_FACTOR |
| 144 | + int "Position filter factor" |
| 145 | + default 2 |
| 146 | + range 1 10 |
| 147 | + help |
| 148 | + Divisor of slider position IIR filter. |
| 149 | + |
| 150 | + config TOUCH_SLIDER_SENSOR_CALCULATE_CHANNEL |
| 151 | + int "Position calculation window" |
| 152 | + default 3 |
| 153 | + range 1 10 |
| 154 | + help |
| 155 | + Number of channels in position calculation |
| 156 | +endmenu |
0 commit comments