mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 16:56:35 +00:00
Allow lower values for touch threshold
This commit is contained in:
parent
ef8f23ce90
commit
17fdb4f5c9
@ -296,7 +296,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
|
|||||||
#ifdef SOC_TOUCH_VERSION_2 // ESP32 S2 and S3 have a function to check touch state but need to attach an interrupt to do so
|
#ifdef SOC_TOUCH_VERSION_2 // ESP32 S2 and S3 have a function to check touch state but need to attach an interrupt to do so
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
touchAttachInterrupt(btnPin[s], touchButtonISR, 256 + (touchThreshold << 4)); // threshold on Touch V2 is much higher (1500 is a value given by Espressif example, I measured changes of over 5000)
|
touchAttachInterrupt(btnPin[s], touchButtonISR, touchThreshold << 4); // threshold on Touch V2 is much higher (1500 is a value given by Espressif example, I measured changes of over 5000)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user