Skip to content

Commit

Permalink
Rename ledc to libretiny_pwm (libretiny-eu#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stroe Andrei Catalin authored Sep 27, 2023
1 parent e02fb8d commit b15bd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upk2esphome/parts/bulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def gen_pwm(yr: YamlResult, config: dict) -> set[str]:

yr.log(f" - color {color}: pin P{pin}, inverted {inv}")
output = {
"platform": "ledc",
"platform": "libretiny_pwm",
"id": f"output_{color}",
"pin": f"P{pin}",
}
Expand Down
2 changes: 1 addition & 1 deletion upk2esphome/parts/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate(yr: YamlResult, config: ConfigData, opts: Opts):
if led_pin is not None:
yr.log(f" - LED {i}: pin P{led_pin}")
output = {
"platform": "ledc",
"platform": "libretiny_pwm",
"id": f"output_led_{i}",
"pin": f"P{led_pin}",
}
Expand Down

0 comments on commit b15bd86

Please sign in to comment.