From fbc60a67eb385f0448f2328ad7d26cf5655b88af Mon Sep 17 00:00:00 2001 From: Gregg Date: Wed, 17 Aug 2022 06:29:26 -0500 Subject: [PATCH] Added setTouchCycles() and setTouchThreshold() to SpanButton as static functions --- src/HomeSpan.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HomeSpan.h b/src/HomeSpan.h index 9111fc0..3bac4d5 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -716,6 +716,8 @@ class SpanButton : PushButton { #if SOC_TOUCH_SENSOR_NUM > 0 static constexpr triggerType_t TRIGGER_ON_TOUCH=PushButton::TRIGGER_ON_TOUCH; + static void setTouchCycles(uint16_t measureTime, uint16_t sleepTime){PushButton::setTouchCycles(measureTime,sleepTime);} + static void setTouchThreshold(touch_value_t thresh){PushButton::setTouchThreshold(thresh);} #endif SpanButton(int pin, uint16_t longTime=2000, uint16_t singleTime=5, uint16_t doubleTime=200, triggerType_t triggerType=TRIGGER_ON_LOW);