mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (Q, R) (#8205)
This commit is contained in:
		| @@ -1,25 +1,8 @@ | ||||
| spi: | ||||
|   - id: spi_main_lcd | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   cs_pin: GPIO12 | ||||
|   dc_pin: GPIO13 | ||||
|   reset_pin: GPIO14 | ||||
|  | ||||
| display: | ||||
|   - platform: ili9xxx | ||||
|     id: main_lcd | ||||
|     model: ili9342 | ||||
|     cs_pin: 12 | ||||
|     dc_pin: 13 | ||||
|     reset_pin: 21 | ||||
|     invert_colors: false | ||||
|     lambda: |- | ||||
|       // Draw a QR code in the center of the screen | ||||
|       auto scale = 2; | ||||
|       auto size = id(homepage_qr).get_size() * scale; | ||||
|       auto x = (it.get_width() / 2) - (size / 2); | ||||
|       auto y = (it.get_height() / 2) - (size / 2); | ||||
|       it.qr_code(x, y, id(homepage_qr), Color(255,255,255), scale); | ||||
|  | ||||
| qr_code: | ||||
|   - id: homepage_qr | ||||
|     value: https://esphome.io/index.html | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user