Added setTouchCycles() and setTouchThreshold() to SpanButton as static functions

This commit is contained in:
Gregg 2022-08-17 06:29:26 -05:00
parent 3b2c36f179
commit fbc60a67eb
1 changed files with 2 additions and 0 deletions

View File

@ -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);