mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[sn74hc595] Enforce type field to distinguish gpio vs spi mode (#6609)
This commit is contained in:
		
							
								
								
									
										27
									
								
								tests/components/sn74hc595/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								tests/components/sn74hc595/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| spi: | ||||
|   - id: spi_sn74hc595 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
|  | ||||
| sn74hc595: | ||||
|   - id: sn74hc595_hub | ||||
|     clock_pin: 12 | ||||
|     data_pin: 13 | ||||
|     latch_pin: 14 | ||||
|     oe_pin: 18 | ||||
|     sr_count: 2 | ||||
|   - id: sn74hc595_hub_2 | ||||
|     latch_pin: 21 | ||||
|     oe_pin: 22 | ||||
|     spi_id: spi_sn74hc595 | ||||
|     type: spi | ||||
|     sr_count: 2 | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     name: SN74HC595 Pin 0 | ||||
|     pin: | ||||
|       sn74hc595: sn74hc595_hub_2 | ||||
|       number: 0 | ||||
|       inverted: false | ||||
		Reference in New Issue
	
	Block a user