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
14 # we're going to use the 1/100 of a mil fundamental unit form
16 return int( mm / 25.4 * 1000.0 * 100.0 + 0.5 )
18 print '# author: Bdale Garbee'
19 print '# email: bdale@gag.com'
20 print '# dist-license: GPL 2'
21 print '# use-license: unlimited'
23 print 'Element[0x0 "CLF0381MP-1" "" "" 0 0 0 0 0 100 0x0]'
26 mm2mils100(PinOffCenter), \
27 mm2mils100(-PinSpacing/2), \
35 mm2mils100(PinOffCenter), \
36 mm2mils100(PinSpacing/2), \
43 print ' ElementArc[',\
46 mm2mils100(BodyDiam/2), \
47 mm2mils100(BodyDiam/2), \