PowerPAD32.fp
usb_onboard.fp
u-pdfn-8.fp
+dfn-2x3-8.fp
ufqfpn28.fp
ufqfpn24.fp
ufqfpn20.fp
wqfn-16.fp
TSX-3225.fp
ECX2236.fp
-norcomp/*.fp
-cui/*.fp
-dfn-2x3-8.fp
-*.pyc
+trapc5mx.fp
+SOIJ8.fp
wqfn-16.fp \
TSX-3225.fp \
ECX2236.fp \
- trapc5mx.fp
+ trapc5mx.fp \
+ SOIJ8.fp
.5c.fp:
nickle $*.5c -o $@
.py.fp:
- python $*.py > $@
+ python2 $*.py > $@
.py.lht:
- python $*.py > $@
+ python2 $*.py > $@
BUILDDIRS=$(DIRS:%=build-%)
CLEANDIRS=$(DIRS:%=clean-%)
+++ /dev/null
-# author: Bdale Garbee
-# email: bdale@gag.com
-# dist-license: GPL 2
-# use-license: unlimited
-Element[0x0 "SOIJ8" "" "" 0 0 -10161 -12011 0 100 0x0]
-(
- Pad[ -7499 -11712 -7499 -15845 2559 2441 3159 "pin8" "8" 0x0100]
- Pad[ -7499 11713 -7499 15846 2559 2441 3159 "pin1" "1" 0x0100]
- Pad[ -2499 -11712 -2499 -15845 2559 2441 3159 "pin7" "7" 0x0100]
- Pad[ -2499 11713 -2499 15846 2559 2441 3159 "pin2" "2" 0x0100]
- Pad[ 2500 -11712 2500 -15845 2559 2441 3159 "pin6" "6" 0x0100]
- Pad[ 2500 11713 2500 15846 2559 2441 3159 "pin3" "3" 0x0100]
- Pad[ 7500 -11712 7500 -15845 2559 2441 3159 "pin5" "5" 0x0100]
- Pad[ 7500 11713 7500 15846 2559 2441 3159 "pin4" "4" 0x0100]
- ElementLine[ -10491 -10590 -10491 10591 1000 ]
- ElementLine[ -10491 10591 10492 10591 1000 ]
- ElementLine[ 10492 10591 10492 -10590 1000 ]
- ElementLine[ 10492 -10590 -10491 -10590 1000 ]
- ElementArc[ -7499 8760 500 500 0 360 1000 ]
-)
--- /dev/null
+#!/usr/bin/python3
+# Copyright 2007-2020 by Bdale Garbee <bdale@gag.com>. GPLv2
+#
+# Program to emit PCB footprint for SOIJ8 package used by 24FC1025
+#
+
+# dimensions in mm from 22064B.pdf datasheet for Microchip 25LC1024
+
+BodyWidth = 5.38
+BodyHeight = 5.33
+
+PinWidth = 0.65
+PinHeight = 1.7
+PinSpacing = 1.27
+RowCenters = 7.0
+RowSpacing = RowCenters - PinHeight
+
+import sys
+
+# we're going to use the 1/100 of a mil fundamental unit form
+def mm2mils100( mm ):
+ return int( mm / 25.4 * 1000.0 * 100.0 + 0.5 )
+
+print ('# author: Bdale Garbee')
+print ('# email: bdale@gag.com')
+print ('# dist-license: GPL 2')
+print ('# use-license: unlimited')
+
+print ('Element[0x0 "SOIJ8" "" "" 0 0 -10161 -12011 0 100 0x0]')
+print ("(")
+for pin in range (0,4):
+ print (' Pad[',\
+ mm2mils100((pin-1.5) * PinSpacing), \
+ mm2mils100(-(RowSpacing/2 + PinWidth/2)), \
+ mm2mils100((pin-1.5) * PinSpacing), \
+ mm2mils100(-(RowSpacing/2 + PinHeight - PinWidth/2)), \
+ mm2mils100(PinWidth), \
+ mm2mils100(PinSpacing - PinWidth), \
+ mm2mils100(PinWidth)+600, \
+ '"pin%i"' % (8 - pin), '"%i"' % (8 - pin), '0x0100]')
+
+ print (' Pad[',\
+ mm2mils100((pin-1.5) * PinSpacing), \
+ mm2mils100(RowSpacing/2 + PinWidth/2), \
+ mm2mils100((pin-1.5) * PinSpacing), \
+ mm2mils100(RowSpacing/2 + PinHeight - PinWidth/2), \
+ mm2mils100(PinWidth), \
+ mm2mils100(PinSpacing - PinWidth), \
+ mm2mils100(PinWidth)+600, \
+ '"pin%i"' % (1 + pin), '"%i"' % (1 + pin), '0x0100]')
+
+print (' ElementLine[',\
+ mm2mils100(-BodyHeight/2), \
+ mm2mils100(-BodyWidth/2), \
+ mm2mils100(-BodyHeight/2), \
+ mm2mils100( BodyWidth/2), \
+ '1000 ]')
+
+print (' ElementLine[',\
+ mm2mils100(-BodyHeight/2), \
+ mm2mils100( BodyWidth/2), \
+ mm2mils100( BodyHeight/2), \
+ mm2mils100( BodyWidth/2), \
+ '1000 ]')
+
+print (' ElementLine[',\
+ mm2mils100( BodyHeight/2), \
+ mm2mils100( BodyWidth/2), \
+ mm2mils100( BodyHeight/2), \
+ mm2mils100(-BodyWidth/2), \
+ '1000 ]')
+
+print (' ElementLine[',\
+ mm2mils100( BodyHeight/2), \
+ mm2mils100(-BodyWidth/2), \
+ mm2mils100(-BodyHeight/2), \
+ mm2mils100(-BodyWidth/2), \
+ '1000 ]')
+
+print (' ElementArc[',\
+ mm2mils100(-1.5 * PinSpacing), \
+ mm2mils100(RowSpacing/2-PinHeight/4), \
+ '500 500 0 360 1000 ]')
+
+print (")")
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for 0605 dual LED
nickle $*.5c -o $@
.py.fp:
- python $*.py > $@
+ python2 $*.py > $@
all: $(FOOTPRINTS) .gitignore
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
./ufl.py > ufl.fp
pico-ezmate-6.fp: pico-ezmate.py
- python pico-ezmate.py 6 >$@
+ python2 pico-ezmate.py 6 >$@
pico-ezmate-4.fp: pico-ezmate.py
- python pico-ezmate.py 4 >$@
+ python2 pico-ezmate.py 4 >$@
pico-ezmate-2.fp: pico-ezmate.py
- python pico-ezmate.py 2 >$@
+ python2 pico-ezmate.py 2 >$@
clean:
rm -f 53261* 53047* 90325* 548190572.fp ufl.fp pico-ezmate-*.fp
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2008 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2008 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2009 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for Molex version of U.FL micro coax connector
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2016 by Bdale Garbee <bdale@gag.com>. GPLv3+
#
# Program to emit PCB footprint for Norcomp 181-YYY-213RYY1 connectors
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2011 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for Norcomp 182-YYY-213RYY1 connectors
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2016 by Bdale Garbee <bdale@gag.com>. GPLv3+
#
# Program to emit PCB footprint for Norcomp 182-YYY-113RYY1 connectors
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2011 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for Norcomp 182-YYY-213RYY1 connectors
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright 2011 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
sys.stderr.write('Must be no more than 15 pins\n')
sys.exit(1)
-print '# author: Bdale Garbee'
-print '# email: bdale@gag.com'
-print '# dist-license: GPL 2'
-print '# use-license: unlimited'
+print ('# author: Bdale Garbee')
+print ('# email: bdale@gag.com')
+print ('# dist-license: GPL 2')
+print ('# use-license: unlimited')
-print 'Element[0x0 "50mil%ipin"' % pins,'"" "" 0 0 0 0 0 100 0x0]'
-print "("
+print ('Element[0x0 "50mil%ipin"' % pins,'"" "" 0 0 0 0 0 100 0x0]')
+print ("(")
for pin in range (1,pins+1):
pinnum = pins + 1 - pin
if pinnum == 1:
- Flags = '0x0101'
+ Flags = '0x0101'
else:
- Flags = '0x0001'
- print ' Pin[', \
+ Flags = '0x0001'
+ print (' Pin[', \
mm2mils100((pins-1)*PinSpacing - (pin-1)*PinSpacing), \
0, \
4200, \
1200, \
4800, \
2800, \
- '"pin%i"' % pinnum, '"%i"' % pinnum, Flags, ']'
+ '"pin%i"' % pinnum, '"%i"' % pinnum, Flags, ']')
-print ")"
+print (")")
FOOTPRINTS = \
+ 50mil2pin.fp \
50mil4pin.fp \
50mil5pin.fp \
50mil6pin.fp \
all: $(FOOTPRINTS) .gitignore
+50mil2pin.fp: 50milpitch.py
+ ./50milpitch.py 2 > 50mil2pin.fp
+
50mil3pin.fp: 50milpitch.py
./50milpitch.py 3 > 50mil3pin.fp
nickle $*.5c -o $@
.py.fp:
- python $*.py > $@
+ python2 $*.py > $@
all: $(FOOTPRINTS) .gitignore
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2010 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for C&K PN22SJNA03QE DPDT switch
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2014 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2017 by Bdale Garbee <bdale@gag.com>. GPLv2+
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2015 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2009 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2011 by Bdale Garbee <bdale@gag.com>. GPLv2
#
# Program to emit PCB footprint for a 16 pin