mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	[CI] Consolidate some tests (M) (#8202)
This commit is contained in:
		
							
								
								
									
										12
									
								
								tests/components/max7219/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/components/max7219/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| spi: | ||||
|   - id: spi_max6675 | ||||
|     clk_pin: ${clk_pin} | ||||
|     mosi_pin: ${mosi_pin} | ||||
|     miso_pin: ${miso_pin} | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: ${cs_pin} | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| @@ -1,12 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_max6675 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   miso_pin: GPIO15 | ||||
|   cs_pin: GPIO5 | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: 12 | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_max7219 | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   miso_pin: GPIO5 | ||||
|   cs_pin: GPIO8 | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: 8 | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_max7219 | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   miso_pin: GPIO5 | ||||
|   cs_pin: GPIO8 | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: 8 | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_max6675 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   miso_pin: GPIO15 | ||||
|   cs_pin: GPIO5 | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: 12 | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_max6675 | ||||
|     clk_pin: 14 | ||||
|     mosi_pin: 13 | ||||
|     miso_pin: 12 | ||||
| substitutions: | ||||
|   clk_pin: GPIO14 | ||||
|   mosi_pin: GPIO13 | ||||
|   miso_pin: GPIO12 | ||||
|   cs_pin: GPIO15 | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: 15 | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_max6675 | ||||
|     clk_pin: 2 | ||||
|     mosi_pin: 3 | ||||
|     miso_pin: 4 | ||||
| substitutions: | ||||
|   clk_pin: GPIO2 | ||||
|   mosi_pin: GPIO3 | ||||
|   miso_pin: GPIO4 | ||||
|   cs_pin: GPIO5 | ||||
|  | ||||
| display: | ||||
|   - platform: max7219 | ||||
|     cs_pin: 6 | ||||
|     num_chips: 1 | ||||
|     lambda: |- | ||||
|       it.print("01234567"); | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user