-
Notifications
You must be signed in to change notification settings - Fork 223
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
[feature] Add ability to define connections using pin names (from pinout list) instead of pin numbers *if* they are unique #71
Comments
An additional benefit is that, if pin functions are switched around on a connector, the connection definitions can stay untouched. |
Pin names from pinout list can now be used in addition to pin numbers when defining connections, provided the identifier is unambiguous. Closes #71.
@formatc1702 wrote:
I guess it should be "A label is used both as a pin name, and a pin number for different pins". If label |
I just rediscovered your older comment and really like the idea of using |
I might have mixed the
Maybe a definition of terminology should be part of the README? Personally, I would excpect IDs, indices, numbers, and normally also names to be unique within the context, but that several pins could have identical labels. |
I realize I keep mixing up My proposal:
This makes things more consistent by using plural words for lists (
How does that sound? |
I think your proposal is really good!!! Thank you for considering this change. It certainly fits my personal expectations. What term do you suggest using for a reference to a pin (where the value is either an ID from If a change like this might create extra conflicts with large PRs in the process, then you should consider what is the best moment to introduce this in the dev branch. |
not sure...
The only big one is the multicolor wires, that's why I'm bugging him regarding the completion ;) |
@formatc1702 wrote "not sure..." Then I suggest simply "pin reference" if you are going to need a separate term for that at all. |
There was the expectation in #38 that connections were defined using pin names instead of pin numbers.
The argument against this was that, while pin numbers are unique (or at least should be), pin names are not (typical example: multiple GND pins on one conector).
However, in many cases, pin names are unique or can be made to be (using GND1, GND2, ...), then it is more intuitive to link functions rather than physical pins. A check should be performed whether the pin names referenced in a connection set are unique, in which case using pin names instead of number should be allowed.
An error should be thrown if:
Pin names in other connectors should not matter, since the format of a connection is always
- CON_NAME: [PIN_NUMBER_LIST]
.Pins that remain unconnected should not be included in the check. In particular, a connector might contain multiple pins labeled as N/C or similar... there is no need to differentiate between those.
The text was updated successfully, but these errors were encountered: