Some checks failed
Create Examples / build (ubuntu-22.04, 3.7) (push) Has been cancelled
Create Examples / build (ubuntu-22.04, 3.8) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.10) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.11) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.12) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.9) (push) Has been cancelled
- Document return contract, resolution precedence, and type-sensitivity note in resolve_pin() docstring - Add ex17_loop_labels.yml: RS-232 loopback adapter demonstrating loops with pin labels, mixed number+label, and label-based connections
24 lines
536 B
YAML
24 lines
536 B
YAML
# Connector loops using pin labels
|
|
# RS-232 loopback adapter: RTS-CTS and DSR-DTR-DCD jumpered,
|
|
# with TX/RX/GND passed through to a cable.
|
|
|
|
connectors:
|
|
X1:
|
|
type: D-Sub
|
|
subtype: female
|
|
pinlabels: [DCD, RX, TX, DTR, GND, DSR, RTS, CTS, RI]
|
|
loops:
|
|
- [RTS, CTS] # pin labels instead of numbers
|
|
- [DSR, DTR]
|
|
- [4, DCD] # mixed: pin number + label
|
|
|
|
cables:
|
|
W1:
|
|
wirecount: 3
|
|
colors: [BK, RD, GN]
|
|
|
|
connections:
|
|
-
|
|
- X1: [RX, TX, GND] # labels in connections too
|
|
- W1: [1-3]
|