[TOUCH] Add a sensor for esp32's touch sensing (#1650)

This commit is contained in:
flo-x authored and GitHub committed 2023-05-24 13:22:10 -05:00
1 parent 88fc5643e8
commit 73913a33a2
4 files changed
+280

No files matched your search

+10
View File
@@ -168,6 +168,9 @@ struct GfSun2000Data {};
#ifdef ZsensorGPIOKeyCode
# include "config_GPIOKeyCode.h"
#endif
#ifdef ZsensorTouch
# include "config_Touch.h"
#endif
#ifdef ZmqttDiscovery
# include "config_mqttDiscovery.h"
#endif
@@ -1026,6 +1029,10 @@ void setup() {
setupADC();
modules.add(ZsensorADC);
#endif
#ifdef ZsensorTouch
setupTouch();
modules.add(ZsensorTouch);
#endif
#ifdef ZsensorC37_YL83_HMRD
setupZsensorC37_YL83_HMRD();
modules.add(ZsensorC37_YL83_HMRD);
@@ -1744,6 +1751,9 @@ void loop() {
#ifdef ZsensorADC
MeasureADC(); //Addon to measure the analog value of analog pin
#endif
#ifdef ZsensorTouch
MeasureTouch();
#endif
#ifdef ZgatewayLORA
LORAtoMQTT();
#endif