2 # Copyright 2022 by Bdale Garbee <bdale@gag.com>. GPLv3
4 # Program to emit PCB footprint for Taiky Yuden 4.9mm square inductors
7 # dimensions in mm from taiyoyuden/would04_e.pdf
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 3')
22 print ('# use-license: unlimited')
24 print ('Element[0x0 "NRS50" "" "" 0 0 -10161 -12011 0 100 0x0]')
26 for pin in range (0,2):
28 mm2mils100((pin-0.5) * PinSpacing), \
29 mm2mils100(-PinHeight/2 + PinWidth/2), \
30 mm2mils100((pin-0.5) * PinSpacing), \
31 mm2mils100(PinHeight/2 - PinWidth/2), \
32 mm2mils100(PinWidth), \
33 mm2mils100(PinSpacing - PinWidth), \
34 mm2mils100(PinWidth)+600, \
35 '"pin%i"' % (1 + pin), '"%i"' % (1 + pin), '0x0100]')