move pio tools to LED component (#4903)

This commit is contained in:
Samuel Sieb 2023-05-28 13:49:27 -07:00 committed by GitHub
parent 97c1c34708
commit 71387846dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 19 deletions

View File

@ -157,7 +157,6 @@ async def to_code(config):
"platform_packages",
[
f"earlephilhower/framework-arduinopico@{conf[CONF_SOURCE]}",
"earlephilhower/tool-pioasm-rp2040-earlephilhower",
],
)

View File

@ -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",
],
)

View File

@ -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: