mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	add on_key trigger to matrix_keypad (#7830)
Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
		
							
								
								
									
										15
									
								
								tests/components/matrix_keypad/test.esp32-s3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/components/matrix_keypad/test.esp32-s3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| packages: | ||||
|   common: !include common.yaml | ||||
|  | ||||
| matrix_keypad: | ||||
|   id: keypad | ||||
|   rows: | ||||
|     - pin: 10 | ||||
|     - pin: 11 | ||||
|   columns: | ||||
|     - pin: 12 | ||||
|     - pin: 13 | ||||
|   keys: "1234" | ||||
|   has_pulldowns: true | ||||
|   on_key: | ||||
|     - lambda: ESP_LOGI("KEY", "key %d pressed", x); | ||||
		Reference in New Issue
	
	Block a user