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

[query] Is it possible to order the pins in descending order? #427

Closed
AdriZ opened this issue Oct 23, 2024 · 4 comments
Closed

[query] Is it possible to order the pins in descending order? #427

AdriZ opened this issue Oct 23, 2024 · 4 comments

Comments

@AdriZ
Copy link

AdriZ commented Oct 23, 2024

I have a cable that is straightforward but the pin numbering is in opposite way on each connector.

Is it possible to order pins in descending order or another solution to arrange that?
image

Here is my yml file renamed with .txt to be accepted by Github.
example.yml.txt

@kvid
Copy link
Collaborator

kvid commented Oct 24, 2024

It's possible to specify custom pin names in any order you want:

  pins: [12,11,10,9,8,7,6,5,4,3,2,1]
  pinlabels: [...]  # NB: The pin labels are expected to be in the same order.

See also #279 for a suggested future alternative that could be useful in your use case.

@AdriZ
Copy link
Author

AdriZ commented Oct 24, 2024

Thanks a lot. That's perfect.

@DeflateAwning
Copy link

What does the comment "The pin labels are expected to be in the same order." mean? Assuming P1 is Pin #1, Pin 12 is Pin #2, etc., which of these is correct?

# Option 1
pins: [12,11,10,9,8,7,6,5,4,3,2,1]
pinlabels: [P12, P11, P10, P9, P8, P7, P6, P5, P4, P3, P2, P1]  # NB: The pin labels are expected to be in the same order. (??)

# Option 2
pins: [12,11,10,9,8,7,6,5,4,3,2,1]
pinlabels: [P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12]  # NB: The pin labels are expected to be in the same order. (??)

@kvid
Copy link
Collaborator

kvid commented Dec 11, 2024

What does the comment "The pin labels are expected to be in the same order." mean? Assuming P1 is Pin #1, Pin 12 is Pin #2, etc., which of these is correct?

# Option 1
pins: [12,11,10,9,8,7,6,5,4,3,2,1]
pinlabels: [P12, P11, P10, P9, P8, P7, P6, P5, P4, P3, P2, P1]  # NB: The pin labels are expected to be in the same order. (??)

# Option 2
pins: [12,11,10,9,8,7,6,5,4,3,2,1]
pinlabels: [P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12]  # NB: The pin labels are expected to be in the same order. (??)
  • In option 1: pin 12 is labelled P12, pin 11 is labelled P11, pin 10 is labelled P10, etc.
  • In option 2: pin 12 is labelled P1, pin 11 is labelled P2, pin 10 is labelled P3, etc.

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

3 participants