3 # generate lihata footprint for 4ucon 11071 tabbed micro USB connector
4 # Copyright 2020 by Bdale Garbee <bdale@gag.com>
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
18 # dimensions taken from 4ucon part drawing
19 # note that we define Y origin to be the board edge, not center mass
24 pad_y = 1.45 + 3.35 - pad_height/2
28 tab_x = 0.2 + tab_width / 2
35 slot_copper = (2.15 - 1.55) / 2
45 fp.description = "4ucon 11071 tabbed micro USB connector"
46 fp.copyright = "Copyright 2020 by Bdale Garbee <bdale@gag.com>"
48 fp.pad({'x': pad_spacing * 2,
54 fp.pad({'x': pad_spacing * 1,
60 fp.pad({'x': pad_spacing * 0,
66 fp.pad({'x': pad_spacing * -1,
72 fp.pad({'x': pad_spacing * -2,
79 # mounting "wings", or tabs next to the signal pads
84 'height': wing_height,
91 'height': wing_height,
96 # mounting tabs under package
101 'height': tab_height,
108 'height': tab_height,
113 # slots for through-hole mounting tabs
114 fp.slot({'x': -slot_x,
117 'height': slot_height,
118 'thickness': slot_width + slot_copper * 2,
121 fp.slot({'x': slot_x,
124 'height': slot_height,
125 'thickness': slot_width + slot_copper * 2,