def __init__(self, rows, pitch, name=""): if not name: name = "EDG-%1.2fmm-%d" % (pitch, rows) super().__init__(name, "CON") self.symbols.append(symbolConnector(rows)) for density in ["N", "L", "M"]: self.footprints.append(footprintEDG(rows, pitch, density))
def __init__(self, circuits, rightAngle): name = "NS25-W%d%s" %(circuits, "K" if rightAngle else "P") super().__init__(name, defaults.conRefDes) self.symbols.append(symbolConnector(circuits)) self.footprints.append(footprintNS25Straight(name, circuits,\ alternativeLibName = "niceConectorsWireToBoard"))