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.