From c9c679a2e56deed73c08e6d988cc14f24a5f5993 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Thu, 29 Apr 2021 17:05:57 -0600 Subject: [PATCH] switch to through-hole version of switch, add to pref parts --- packages/.gitignore | 2 ++ packages/LPH.py | 31 +++++++++++++++++++++++++++++++ preferred-parts | 3 ++- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/packages/.gitignore b/packages/.gitignore index ff73fb6..2f97b24 100644 --- a/packages/.gitignore +++ b/packages/.gitignore @@ -129,3 +129,5 @@ ECX2236.fp trapc5mx.fp SOIJ4.fp SOIJ8.fp +AT1220.fp +LPH.fp diff --git a/packages/LPH.py b/packages/LPH.py index 48aa279..48ee2b4 100755 --- a/packages/LPH.py +++ b/packages/LPH.py @@ -9,6 +9,8 @@ PinDiam = 1.0 RowSpacing = 4.5 ColumnSpacing = 6.5 +BodyHeight = 6.0 +BodyWidth = 6.0 import sys @@ -59,4 +61,33 @@ print(' Pin[',\ mm2mils100(PinDiam), \ '"pin2" "2" 0x0000]') +print(' ElementLine[',\ + -mm2mils100(BodyWidth/2), \ + -mm2mils100(BodyHeight/2), \ + mm2mils100(BodyWidth/2), \ + -mm2mils100(BodyHeight/2), \ + 500, \ + ']') +print(' ElementLine[',\ + -mm2mils100(BodyWidth/2), \ + -mm2mils100(BodyHeight/2), \ + -mm2mils100(BodyWidth/2), \ + mm2mils100(BodyHeight/2), \ + 500, \ + ']') +print(' ElementLine[',\ + -mm2mils100(BodyWidth/2), \ + mm2mils100(BodyHeight/2), \ + mm2mils100(BodyWidth/2), \ + mm2mils100(BodyHeight/2), \ + 500, \ + ']') +print(' ElementLine[',\ + mm2mils100(BodyWidth/2), \ + mm2mils100(BodyHeight/2), \ + mm2mils100(BodyWidth/2), \ + -mm2mils100(BodyHeight/2), \ + 500, \ + ']') + print(")") diff --git a/preferred-parts b/preferred-parts index 39ed36d..f57cbbf 100644 --- a/preferred-parts +++ b/preferred-parts @@ -264,6 +264,7 @@ RESISTOR 6.8 0402 smt no ERJ-U02F6R80X digikey 10-ERJ-U02F6R80XCT-ND reel8mm RESISTOR 8.06k 0402 smt no ERJ-2RKF8061X digikey P8.06KLCT-ND reel8mm RESISTOR 8.45k 0402 smt no ERJ-2RKF8451X digikey P8.45KLCT-ND reel8mm RESISTOR 9.09k 0402 smt no ERJ-2RKF9091X digikey P9.09KLCT-ND reel8mm +SWITCH PUSHNO LPH throughhole no 1301.9307 mouser 693-1301.9307 SWITCH On/OFF PNswitchDPDT throughhole no PN22SJNA03QE mouser 611-PN22SJNA03QE SWITCH SPDT SK12F17 throughhole no SK12F17G7 mouser 611-SK-12F17-G7 SWITCH SPDT cus-12 smt no CUS-12TB digikey 563-1102-1-ND @@ -274,4 +275,4 @@ SWITCH A6R-102R A6R-102R throughhole no A6R-102R mouser 653-A6R-102RF SWITCH SPST pts645 smt no PTS645SM43SMTR92 LFS digikey CKN9112TR-ND SWITCH SPDT l102 throughhole no L102011MS02Q digikey CKC5107-ND SWITCH DPST l201 throughhole no L201011MS02Q digikey CKN11876-ND -SWITCH SWITCH_PUSHBUTTON_NO LPH throughhole no 1301.9307 mouser 693-1301.9307 + -- 2.30.2