CarlFK
1
pcb = KicadPCB.load("GENERIC_CAN.kicad_pcb")
for i in pcb['net']:
print(i)
prints:
GRN_BUT
BLU_BUT
RED_BUT
YEL_BUT
JOY_Y
JOY_X
…
These are switches and pots hooked up to pins of a chip. I can see on the screen
GRN_BUT is hooked to pin 31 of U11 named E11.
I would like the python code to find E11 and print it. if the best it can do is 31, I can hard code the 31:E11 transform.
qu1ck
2
Where did you get that code snipper from? That is not standard python api that kicad provides, you are probably using some kind of wrapper.
CarlFK
3
Opps, yes, meant to include that.
system
Closed
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.