mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	[CI] Consolidate some tests (U, V, W, X, Y, Z) (#8210)
This commit is contained in:
		
							
								
								
									
										190
									
								
								tests/components/waveshare_epaper/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										190
									
								
								tests/components/waveshare_epaper/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,190 @@ | ||||
| spi: | ||||
|   - id: spi_waveshare_epaper | ||||
|     clk_pin: ${clk_pin} | ||||
|     mosi_pin: ${mosi_pin} | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13in-ttgo-b74 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.90in | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.90inv2 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.90in-dke | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 1 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.70in-b | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.70in-bv2 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13inv3 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13inv2 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 7.50in-bv3-bwr | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${cs_pin} | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${dc_pin} | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${busy_pin} | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: ${reset_pin} | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| @@ -1,207 +1,9 @@ | ||||
| --- | ||||
| spi: | ||||
|   - id: spi_id_1 | ||||
|     clk_pin: | ||||
|       number: GPIO18 | ||||
|     mosi_pin: | ||||
|       number: GPIO23 | ||||
|     miso_pin: | ||||
|       number: GPIO19 | ||||
|     interface: hardware | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   cs_pin: GPIO18 | ||||
|   dc_pin: GPIO19 | ||||
|   busy_pin: GPIO13 | ||||
|   reset_pin: GPIO14 | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13in-ttgo-b74 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.90in | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.90inv2 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.90in-dke | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 1 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.70in-b | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.70in-bv2 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13inv3 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 2.13inv2 | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     model: 7.50in-bv3-bwr | ||||
|     spi_id: spi_id_1 | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO25 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO26 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO27 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: GPIO32 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,123 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_waveshare_epaper | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   cs_pin: GPIO0 | ||||
|   dc_pin: GPIO5 | ||||
|   busy_pin: GPIO3 | ||||
|   reset_pin: GPIO4 | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90in | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90inv2 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-b | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-bv2 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 7.50in-bv3-bwr | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,123 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_waveshare_epaper | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   cs_pin: GPIO0 | ||||
|   dc_pin: GPIO5 | ||||
|   busy_pin: GPIO3 | ||||
|   reset_pin: GPIO4 | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90in | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90inv2 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-b | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-bv2 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 7.50in-bv3-bwr | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,123 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   cs_pin: GPIO18 | ||||
|   dc_pin: GPIO19 | ||||
|   busy_pin: GPIO13 | ||||
|   reset_pin: GPIO14 | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90in | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90inv2 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-b | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-bv2 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 7.50in-bv3-bwr | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,123 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 14 | ||||
|     mosi_pin: 13 | ||||
|     miso_pin: 12 | ||||
| substitutions: | ||||
|   clk_pin: GPIO14 | ||||
|   mosi_pin: GPIO13 | ||||
|   cs_pin: GPIO15 | ||||
|   dc_pin: GPIO12 | ||||
|   busy_pin: GPIO5 | ||||
|   reset_pin: GPIO4 | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90in | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.90inv2 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-b | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 2.70in-bv2 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 4 | ||||
|     model: 7.50in-bv3-bwr | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,123 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 2 | ||||
|     mosi_pin: 3 | ||||
|     miso_pin: 4 | ||||
| substitutions: | ||||
|   clk_pin: GPIO2 | ||||
|   mosi_pin: GPIO3 | ||||
|   cs_pin: GPIO5 | ||||
|   dc_pin: GPIO4 | ||||
|   busy_pin: GPIO0 | ||||
|   reset_pin: GPIO1 | ||||
|  | ||||
| display: | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 2.13in-ttgo-b1 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 2.90in | ||||
|     full_update_every: 30 | ||||
|     reset_duration: 200ms | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 2.90inv2 | ||||
|     full_update_every: 30 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 2.70in-b | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 2.70in-bv2 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 1.54in-m5coreink-m09 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|   - platform: waveshare_epaper | ||||
|     cs_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     dc_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     busy_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     reset_pin: | ||||
|       allow_other_uses: true | ||||
|       number: 5 | ||||
|     model: 7.50in-bv3-bwr | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user