Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal or pin redefinition in subclass is not caught #352

Open
Timot05 opened this issue May 10, 2024 · 0 comments
Open

Signal or pin redefinition in subclass is not caught #352

Timot05 opened this issue May 10, 2024 · 0 comments

Comments

@Timot05
Copy link
Contributor

Timot05 commented May 10, 2024

Signal anode and cathode is defined twice and connected to different pins, leading to a shorted led.

component LED:
    signal anode ~ pin 1
    signal cathode ~ pin 2
    designator_prefix = "LED"
    # current = 0 to 20mA

component _KT_0603R from LED:
    # component KT-0603R
    footprint = "LED0603-RD"
    mpn = "C2286"
    v_f = 2V
    i_max = 20mA
    # pins
    signal cathode ~ pin 1
    signal anode ~ pin 2

module LEDIndicatorGreen from LEDIndicator:
    led -> _KT_0603G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant