We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e81841 commit 2123878Copy full SHA for 2123878
src/EasyButtonTouch.cpp
@@ -7,6 +7,7 @@
7
8
#if defined(ESP32)
9
#include "EasyButtonTouch.h"
10
+#if defined(SOC_TOUCH_SENSOR_SUPPORTED)
11
12
void EasyButtonTouch::setThreshold(int threshold)
13
{
@@ -33,5 +34,5 @@ bool EasyButtonTouch::_readPin()
33
34
ADCFilter.Filter(touchRead(_pin));
35
return ADCFilter.Current() < _touch_threshold;
36
}
-
37
+#endif
38
#endif
src/EasyButtonTouch.h
@@ -7,6 +7,8 @@
#if !defined(_EasyButtonTouch_h) and defined(ESP32)
#define _EasyButtonTouch_h
+#include <include/soc/soc_caps.h>
#include <Arduino.h>
14
#include <Filter.h>
@@ -26,5 +28,5 @@ class EasyButtonTouch : public EasyButton
26
28
27
29
bool _readPin();
30
};
31
32
0 commit comments