From: Keith Packard Date: Mon, 15 Jul 2013 22:08:05 +0000 (-0700) Subject: Add LPH series switch footprint X-Git-Tag: telelco-v3.0~866 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f358dba4f505a3c0c5f2fc26a3dc54e7c5872bc4;p=hw%2Faltusmetrum Add LPH series switch footprint Signed-off-by: Keith Packard --- diff --git a/packages/switches/Makefile b/packages/switches/Makefile index f10b24b..b8e0de3 100644 --- a/packages/switches/Makefile +++ b/packages/switches/Makefile @@ -1,7 +1,8 @@ .SUFFIXES: .5c .py .fp FOOTPRINTS = \ - cus-12.fp + cus-12.fp \ + lph.fp .5c.fp: nickle $*.5c > $@ diff --git a/packages/switches/lph.5c b/packages/switches/lph.5c new file mode 100644 index 0000000..0921093 --- /dev/null +++ b/packages/switches/lph.5c @@ -0,0 +1,42 @@ +/* + * Copyright © 2012 Keith Packard + * + * 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; version 2 of the License. + * + * 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. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +load "../footprint.5c" +import Footprint; + +real hole_space_x = 6.5; +real hole_space_y = 4.5; +real package_width = 6; +real package_height = 6; +real hole_diameter = 1; +real hole_copper = 0.3; + +element_start("lph"); + +for (int y = 0; y < 2; y++) + for (int x = 0; x < 2; x++) { + int pin = (x + y * 2) + 1; + string pin_name = sprintf ("%d", pin); + string options = pin == 1 ? "square" : ""; + pin_mm_options (x * hole_space_x - hole_space_x/2, y * hole_space_y - hole_space_y/2, hole_diameter, + hole_copper, pin_name, pin_name, options); + } + +rect(-package_width/2, -package_height/2, package_width, package_height); + +element_end(); +