From: Bdale Garbee Date: Fri, 15 Jan 2021 08:07:36 +0000 (-0700) Subject: moving lht generator for 11071 out of tree until I have a working version X-Git-Tag: telelco-v3.0~252 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=95748390478781dcf20ec13c349f6971c9133cc1;p=hw%2Faltusmetrum moving lht generator for 11071 out of tree until I have a working version --- diff --git a/packages/11071.py b/packages/11071.py deleted file mode 100755 index faccf20..0000000 --- a/packages/11071.py +++ /dev/null @@ -1,129 +0,0 @@ -#! /usr/bin/python3 -# -# generate lihata footprint for 4ucon 11071 tabbed micro USB connector -# Copyright 2020 by Bdale Garbee -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -from fplht import * - -# dimensions taken from 4ucon part drawing -# note that we define Y origin to be the board edge, not center mass - -pad_width = 0.4 -pad_height = 1.35 -pad_spacing = 0.65 -pad_y = 1.45 + 3.35 - pad_height/2 - -tab_width = 1.9 -tab_height = 1.9 -tab_x = 0.2 + tab_width / 2 -tab_y = 1.45 - -slot_x = 6.40 / 2 -slot_y = 1.45 -slot_width = 0.45 -slot_height = 1.55 -slot_copper = (2.15 - 1.55) / 2 - -wing_width = 1.6 -wing_height = 1.4 -wing_x = 3.2 -wing_y = 1.45 + 2.25 - -fp = footprint() - -fp.name = "11071" -fp.description = "4ucon 11071 tabbed micro USB connector" -fp.copyright = "Copyright 2020 by Bdale Garbee " - -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"}) - -# 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"}) - -# 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.emit() \ No newline at end of file