Added setTouchCycles() and setTouchThreshold() to SpanButton as static functions
This commit is contained in:
parent
3b2c36f179
commit
fbc60a67eb
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue