mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	move pio tools to LED component (#4903)
This commit is contained in:
		| @@ -157,7 +157,6 @@ async def to_code(config): | ||||
|         "platform_packages", | ||||
|         [ | ||||
|             f"earlephilhower/framework-arduinopico@{conf[CONF_SOURCE]}", | ||||
|             "earlephilhower/tool-pioasm-rp2040-earlephilhower", | ||||
|         ], | ||||
|     ) | ||||
|  | ||||
|   | ||||
| @@ -265,3 +265,9 @@ async def to_code(config): | ||||
|                 time_to_cycles(config[CONF_BIT1_LOW]), | ||||
|             ), | ||||
|         ) | ||||
|     cg.add_platformio_option( | ||||
|         "platform_packages", | ||||
|         [ | ||||
|             "earlephilhower/tool-pioasm-rp2040-earlephilhower", | ||||
|         ], | ||||
|     ) | ||||
|   | ||||
| @@ -37,24 +37,24 @@ switch: | ||||
|     output: pin_4 | ||||
|     id: pin_4_switch | ||||
|  | ||||
| light: | ||||
|   - platform: rp2040_pio_led_strip | ||||
|     id: led_strip | ||||
|     pin: GPIO13 | ||||
|     num_leds: 60 | ||||
|     pio: 0 | ||||
|     rgb_order: GRB | ||||
|     chipset: WS2812 | ||||
|   - platform: rp2040_pio_led_strip | ||||
|     id: led_strip_custom_timings | ||||
|     pin: GPIO13 | ||||
|     num_leds: 60 | ||||
|     pio: 1 | ||||
|     rgb_order: GRB | ||||
|     bit0_high: .1us | ||||
|     bit0_low: 1.2us | ||||
|     bit1_high: .69us | ||||
|     bit1_low: .4us | ||||
| #light: | ||||
| #  - platform: rp2040_pio_led_strip | ||||
| #    id: led_strip | ||||
| #    pin: GPIO13 | ||||
| #    num_leds: 60 | ||||
| #    pio: 0 | ||||
| #    rgb_order: GRB | ||||
| #    chipset: WS2812 | ||||
| #  - platform: rp2040_pio_led_strip | ||||
| #    id: led_strip_custom_timings | ||||
| #    pin: GPIO13 | ||||
| #    num_leds: 60 | ||||
| #    pio: 1 | ||||
| #    rgb_order: GRB | ||||
| #    bit0_high: .1us | ||||
| #    bit0_low: 1.2us | ||||
| #    bit1_high: .69us | ||||
| #    bit1_low: .4us | ||||
|  | ||||
|  | ||||
| sensor: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user