fp.name = "11071"
fp.description = "4ucon 11071 tabbed micro USB connector"
+fp.copyright = "Copyright 2020 by Bdale Garbee <bdale@gag.com>"
-fp.pad({'x' : pad_spacing* 2, 'y' : pad_y, 'width' : pad_width, 'height' : pad_height, 'name' : 'VBUS', 'number' : '1'})
-fp.pad({'x' : pad_spacing* 1, 'y' : pad_y, 'width' : pad_width, 'height' : pad_height, 'name' : 'D-', 'number' : '2'})
-fp.pad({'x' : pad_spacing* 0, 'y' : pad_y, 'width' : pad_width, 'height' : pad_height, 'name' : 'D+', 'number' : '3'})
-fp.pad({'x' : pad_spacing* -1, 'y' : pad_y, 'width' : pad_width, 'height' : pad_height, 'name' : 'HS', 'number' : '4'})
-fp.pad({'x' : pad_spacing* -2, 'y' : pad_y, 'width' : pad_width, 'height' : pad_height, 'name' : 'GND', 'number' : '5'})
+fp.pad({'x' : pad_spacing* 2,
+ 'y' : pad_y,
+ 'width' : pad_width,
+ 'height' : pad_height,
+ 'name' : 'VBUS',
+ 'number' : '1'})
+fp.pad({'x' : pad_spacing* 1,
+ 'y' : pad_y,
+ 'width' : pad_width,
+ 'height' : pad_height,
+ 'name' : 'D-',
+ 'number' : '2'})
+fp.pad({'x' : pad_spacing* 0,
+ 'y' : pad_y,
+ 'width' : pad_width,
+ 'height' : pad_height,
+ 'name' : 'D+',
+ 'number' : '3'})
+fp.pad({'x' : pad_spacing* -1,
+ 'y' : pad_y,
+ 'width' : pad_width,
+ 'height' : pad_height,
+ 'name' : 'HS',
+ 'number' : '4'})
+fp.pad({'x' : pad_spacing* -2,
+ 'y' : pad_y,
+ 'width' : pad_width,
+ 'height' : pad_height,
+ 'name' : 'GND',
+ 'number' : '5'})
# mounting "wings", or tabs next to the signal pads
-fp.pad({'x' : -wing_x, 'y' : wing_y, 'width' : wing_width, 'height' : wing_height, 'spacing' : 0, 'name' : "", 'number' : "G"})
-fp.pad({'x' : wing_x, 'y' : wing_y, 'width' : wing_width, 'height' : wing_height, 'spacing' : 0, 'name' : "", 'number' : "G"})
+fp.pad({'x' : -wing_x,
+ 'y' : wing_y,
+ 'width' : wing_width,
+ 'height' : wing_height,
+ 'spacing' : 0,
+ 'name' : "",
+ 'number' : "G"})
+fp.pad({'x' : wing_x,
+ 'y' : wing_y,
+ 'width' : wing_width,
+ 'height' : wing_height,
+ 'spacing' : 0,
+ 'name' : "",
+ 'number' : "G"})
# mounting tabs under package
-fp.pad({'x' : -tab_x, 'y' : tab_y, 'width' : tab_width, 'height' : tab_height, 'spacing' : 0, 'name' : "", 'number' : "G"})
-fp.pad({'x' : tab_x, 'y' : tab_y, 'width' : tab_width, 'height' : tab_height, 'spacing' : 0, 'name' : "", 'number' : "G"})
+fp.pad({'x' : -tab_x,
+ 'y' : tab_y,
+ 'width' : tab_width,
+ 'height' : tab_height,
+ 'spacing' : 0,
+ 'name' : "",
+ 'number' : "G"})
+fp.pad({'x' : tab_x,
+ 'y' : tab_y,
+ 'width' : tab_width,
+ 'height' : tab_height,
+ 'spacing' : 0,
+ 'name' : "",
+ 'number' : "G"})
# slots for through-hole mounting tabs
-fp.slot({'x' : -slot_x, 'y' : slot_y, 'width' : slot_width, 'height' : slot_height, 'thickness' : slot_width + slot_copper * 2, 'name' : 'GND', 'number' : 5})
-fp.slot({'x' : slot_x, 'y' : slot_y, 'width' : slot_width, 'height' : slot_height, 'thickness' : slot_width + slot_copper * 2, 'name' : 'GND', 'number' : 5})
+fp.slot({'x' : -slot_x,
+ 'y' : slot_y,
+ 'width' : slot_width,
+ 'height' : slot_height,
+ 'thickness' : slot_width + slot_copper * 2,
+ 'name' : 'GND',
+ 'number' : 5})
+fp.slot({'x' : slot_x,
+ 'y' : slot_y,
+ 'width' : slot_width,
+ 'height' : slot_height,
+ 'thickness' : slot_width + slot_copper * 2,
+ 'name' : 'GND',
+ 'number' : 5})
fp.emit()
def __init__(self):
self.name = ""
self.description = ""
+ self.copyright = "Copyright 2020 by Bdale Garbee <bdale@gag.com>"
self.dist_license = "GPLv3"
self.use_license = "Unlimited"
- self.author = "Bdale Garbee <bdale@gag.com>"
self.cnt = 0
self.items = []
self.padstacks = dict()
# mask thickness of pad and solder mask
# options default to 'square'
- print ("adding pad")
+ # print ("adding pad")
d['type'] = 'pad'
if 'x1' not in d:
# mask thickness of pad and solder mask
# options default to 'square' for pin number 1
- print ("adding pin")
+ # print ("adding pin")
d['type'] = 'pin'
if 'spacing' not in d:
# clearance twice the spacing between slot copper and other traces
# mask thickness of slot copper and solder mask
- print ("adding slot")
+ # print ("adding slot")
d['type'] = 'slot'
if 'x1' not in d:
print(" ha:subc.0 {")
print(" ha:attributes {")
print(" description = %s" % self.description)
+ print(" copyright = %s" % self.copyright)
print(" dist_license = %s" % self.dist_license)
print(" use_license = %s" % self.use_license)
- print(" author = %s" % self.author)
print(" }")
print(" uid = %s" % self.create_uuid())
print(" ha:data {")