increase default clearance around 1/4" tabs to 25 mils
[hw/altusmetrum] / packages / AT1220.py
index 7d336c3ade43bcfc490f730dc63229270119bdfd..e972a99fd2c4311f1d04648ffc29a3f704f54cdf 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python3
 # Copyright 2021 by Bdale Garbee <bdale@gag.com>.  GPLv3
 #
-# Program to emit PCB footprint for TDK beeper
+# Program to emit PCB footprint for PUI Audio AT-1220 beeper
 #
 
 # dimensions in mm from puiaudio/AT-1220-TT-11-R.pdf datasheet
@@ -20,7 +20,7 @@ print('# email: bdale@gag.com')
 print('# dist-license: GPL 3')
 print('# use-license: unlimited')
 
-print('Element[0x0 "TDK_PS12" "" "" 0 0 0 0 0 100 0x0]')
+print('Element[0x0 "AT-1220" "" "" 0 0 0 0 0 100 0x0]')
 print("(")
 print('   Pin[',\
        mm2mils100(-PinSpacing/2), \
@@ -50,4 +50,28 @@ print('   ElementArc[',\
        1000, \
        ']')
 
+print('   ElementLine[',\
+        mm2mils100(-3*BodyDiam/8), \
+        mm2mils100(-BodyDiam/4), \
+        mm2mils100(-BodyDiam/8), \
+        mm2mils100(-BodyDiam/4), \
+        1000, \
+        ']')
+
+print('   ElementLine[',\
+        mm2mils100(3*BodyDiam/8), \
+        mm2mils100(-BodyDiam/4), \
+        mm2mils100(BodyDiam/8), \
+        mm2mils100(-BodyDiam/4), \
+        1000, \
+        ']')
+
+print('   ElementLine[',\
+        mm2mils100(BodyDiam/4), \
+        mm2mils100(-3*BodyDiam/8), \
+        mm2mils100(BodyDiam/4), \
+        mm2mils100(-1*BodyDiam/8), \
+        1000, \
+        ']')
+
 print(")")