mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 04:59:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			414 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			414 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Example: GPIO
 | |
| 
 | |
| This test code shows how to configure gpio and how to use gpio interrupt.
 | |
| 
 | |
| ## GPIO functions:
 | |
| 
 | |
|  * GPIO18: output
 | |
|  * GPIO19: output
 | |
|  * GPIO4:  input, pulled up, interrupt from rising edge and falling edge
 | |
|  * GPIO5:  input, pulled up, interrupt from rising edge.
 | |
| 
 | |
| ## Test:
 | |
|  * Connect GPIO18 with GPIO4
 | |
|  * Connect GPIO19 with GPIO5
 | |
|  * Generate pulses on GPIO18/19, that triggers interrupt on GPIO4/5
 | 
