mirror of
				https://github.com/0xFEEDC0DE64/arduino-esp32.git
				synced 2025-10-30 21:51:40 +01:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			304 B
		
	
	
	
		
			Arduino
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			304 B
		
	
	
	
		
			Arduino
		
	
	
	
	
	
|   | // 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(T0));  // get value using T0
 | ||
|  |   delay(1000); | ||
|  | } |