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 e62ecb3 commit cea41d9Copy full SHA for cea41d9
libraries/ESP32/examples/Touch/TouchRead/TouchRead.ino
@@ -0,0 +1,15 @@
1
+// ESP32 Touch Test
2
+// Just test touch pin - Touch0 is T0 which is on GPIO 4.
3
+
4
+void setup()
5
+{
6
+ Serial.begin(115200);
7
+ delay(1000); // give me time to bring up serial monitor
8
+ Serial.println("ESP32 Touch Test");
9
+}
10
11
+void loop()
12
13
+ Serial.println(touchRead(T0)); // get value using T0
14
+ delay(1000);
15
0 commit comments