mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 17:54:13 +01:00
move pio tools to LED component (#4903)
This commit is contained in:
parent
97c1c34708
commit
71387846dc
3 changed files with 24 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue