arduino-esp32-custom-lwip-p.../libraries/ESP32/examples/Touch/TouchRead/TouchRead.ino

16 lines
304 B
Arduino
Raw Permalink Normal View History

2023-02-25 16:13:53 +01:00
// ESP32 Touch Test
// Just test touch pin - Touch0 is T0 which is on GPIO 4.
void setup()
{
Serial.begin(115200);
delay(1000); // give me time to bring up serial monitor
Serial.println("ESP32 Touch Test");
}
void loop()
{
Serial.println(touchRead(T1)); // get value using T0
delay(1000);
}