2 # Copyright 2007 by Bdale Garbee <bdale@gag.com>. GPLv2
4 # Program to emit PCB footprint for CUI CLF0381MP-1 speaker
7 # dimensions in mm from abm8.pdf Abracon datasheet
15 # we're going to use the 1/100 of a mil fundamental unit form
17 return int( mm / 25.4 * 1000.0 * 100.0 + 0.5 )
19 print '# author: Bdale Garbee'
20 print '# email: bdale@gag.com'
21 print '# dist-license: GPL 2'
22 print '# use-license: unlimited'
24 print 'Element[0x0 "CLF0381MP-1" "" "" 0 0 0 0 0 100 0x0]'
27 mm2mils100(PinOffCenter), \
28 mm2mils100(-PinSpacing/2), \
36 mm2mils100(PinOffCenter), \
37 mm2mils100(PinSpacing/2), \
44 print ' ElementArc[',\
47 mm2mils100(BackDiam/2), \
48 mm2mils100(BackDiam/2), \
54 print ' ElementArc[',\
57 mm2mils100(BodyDiam/2), \
58 mm2mils100(BodyDiam/2), \