--- /dev/null
+#!/usr/bin/env python
+# -*- coding: ASCII -*-
+'''TI SOT753, SC-74A DBV, 5pin variant
+from SN74LVC1G125 datasheet
+'''
+import sys
+from footprinter import *
+
+#
+# PCB fab minimums
+#
+MASK_SWELL = mil(5.0)
+MIN_TRACE = mil(6.0)
+MIN_SPACE = mil(6.0)
+MIN_PAD_ANNULUS = mil(15.0)
+MIN_VIA_ANNULUS = mil(10.0)
+
+# pcb's coordinates are graphics oriented
+# x in increasing right
+# y in increasing DOWN
+
+SILK_LINEWIDTH = mil(8.0)
+
+
+padw = mm(1.00)
+padh = mm(0.55)
+ccspace = mm(2.70)
+pitch = mm(0.95)
+
+bodyw = mm(1.8)
+bodyh = mm(3.1)
+
+npins = 6
+
+pads = []
+#left
+for i in range(1, npins +1):
+ if i > npins/2:
+ side = 1
+ else:
+ side = -1
+
+ idx = (i-1) % (npins/2)
+ if npins % 4 == 0:
+ py = side*pitch*(npins/4 - 0.5) - side*(idx*pitch)
+ else:
+ py = side*pitch*(npins/4) - side*(idx*pitch)
+
+ #just reserve space for space, logical pin5 is in physical pin6 spot
+ if i == 5:
+ continue
+ elif i == 6:
+ i = 5
+
+ pad = Pad(i,
+ [
+ side * ccspace/2 - padw/2,
+ py - padh/2,
+ side * ccspace/2 + padw/2,
+ py + padh/2
+ ],
+ MIN_SPACE, MASK_SWELL, name=str(i), sflags='square'
+ )
+ pads.append(pad)
+
+
+# silkscreen
+lines = []
+#top
+lines.append(ElementLine(
+ -bodyw/2, -bodyh/2,
+ bodyw/2, -bodyh/2,
+ SILK_LINEWIDTH))
+
+#pin-1 pip
+lines.append(ElementLine(
+ -bodyw/2, -bodyh/2,
+ -bodyw/2, -bodyh/2 - 1.5*SILK_LINEWIDTH,
+ SILK_LINEWIDTH))
+
+#bottom
+lines.append(ElementLine(
+ -bodyw/2, bodyh/2,
+ bodyw/2, bodyh/2,
+ SILK_LINEWIDTH))
+
+
+fp = Footprint(
+ padpins=pads,
+ linearcs=lines,
+ sflags='',
+ description=''
+ )
+
+fp.mx = 0
+fp.my = 0
+fp.tx = 0
+fp.ty = 0
+fp.write(sys.stdout)
+
--- /dev/null
+Element ["" "" "" "" 0nm 0nm 0nm 0nm 0 100 ""]
+(
+Pad [-1575000nm -950000nm -1125000nm -950000nm 550000nm 152400nm 804000nm "1" "1" "square"]
+Pad [-1575000nm 0nm -1125000nm 0nm 550000nm 152400nm 804000nm "2" "2" "square"]
+Pad [-1575000nm 950000nm -1125000nm 950000nm 550000nm 152400nm 804000nm "3" "3" "square"]
+Pad [1125000nm 950000nm 1575000nm 950000nm 550000nm 152400nm 804000nm "4" "4" "square"]
+Pad [1125000nm -950000nm 1575000nm -950000nm 550000nm 152400nm 804000nm "5" "5" "square"]
+ElementLine [-900000nm -1550000nm 900000nm -1550000nm 203200nm]
+ElementLine [-900000nm -1550000nm -900000nm -1854800nm 203200nm]
+ElementLine [-900000nm 1550000nm 900000nm 1550000nm 203200nm]
+)
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: ASCII -*-
+'''TI SOT753, SC-74A DBV, 6pin variant
+from SN74LVC1G125 datasheet
+'''
+import sys
+from footprinter import *
+
+#
+# PCB fab minimums
+#
+MASK_SWELL = mil(5.0)
+MIN_TRACE = mil(6.0)
+MIN_SPACE = mil(6.0)
+MIN_PAD_ANNULUS = mil(15.0)
+MIN_VIA_ANNULUS = mil(10.0)
+
+# pcb's coordinates are graphics oriented
+# x in increasing right
+# y in increasing DOWN
+
+SILK_LINEWIDTH = mil(8.0)
+
+
+padw = mm(1.00)
+padh = mm(0.55)
+ccspace = mm(2.70)
+pitch = mm(0.95)
+
+bodyw = mm(1.8)
+bodyh = mm(3.1)
+
+npins = 6
+
+pads = []
+#left
+for i in range(1, npins +1):
+ if i > npins/2:
+ side = 1
+ else:
+ side = -1
+
+ idx = (i-1) % (npins/2)
+ if npins % 4 == 0:
+ py = side*pitch*(npins/4 - 0.5) - side*(idx*pitch)
+ else:
+ py = side*pitch*(npins/4) - side*(idx*pitch)
+ pad = Pad(i,
+ [
+ side * ccspace/2 - padw/2,
+ py - padh/2,
+ side * ccspace/2 + padw/2,
+ py + padh/2
+ ],
+ MIN_SPACE, MASK_SWELL, name=str(i), sflags='square'
+ )
+ pads.append(pad)
+
+
+# silkscreen
+lines = []
+#top
+lines.append(ElementLine(
+ -bodyw/2, -bodyh/2,
+ bodyw/2, -bodyh/2,
+ SILK_LINEWIDTH))
+
+#pin-1 pip
+lines.append(ElementLine(
+ -bodyw/2, -bodyh/2,
+ -bodyw/2, -bodyh/2 - 1.5*SILK_LINEWIDTH,
+ SILK_LINEWIDTH))
+
+#bottom
+lines.append(ElementLine(
+ -bodyw/2, bodyh/2,
+ bodyw/2, bodyh/2,
+ SILK_LINEWIDTH))
+
+
+fp = Footprint(
+ padpins=pads,
+ linearcs=lines,
+ sflags='',
+ description=''
+ )
+
+fp.mx = 0
+fp.my = 0
+fp.tx = 0
+fp.ty = 0
+fp.write(sys.stdout)
+
--- /dev/null
+Element ["" "" "" "" 0nm 0nm 0nm 0nm 0 100 ""]
+(
+Pad [-1575000nm -950000nm -1125000nm -950000nm 550000nm 152400nm 804000nm "1" "1" "square"]
+Pad [-1575000nm 0nm -1125000nm 0nm 550000nm 152400nm 804000nm "2" "2" "square"]
+Pad [-1575000nm 950000nm -1125000nm 950000nm 550000nm 152400nm 804000nm "3" "3" "square"]
+Pad [1125000nm 950000nm 1575000nm 950000nm 550000nm 152400nm 804000nm "4" "4" "square"]
+Pad [1125000nm 0nm 1575000nm 0nm 550000nm 152400nm 804000nm "5" "5" "square"]
+Pad [1125000nm -950000nm 1575000nm -950000nm 550000nm 152400nm 804000nm "6" "6" "square"]
+ElementLine [-900000nm -1550000nm 900000nm -1550000nm 203200nm]
+ElementLine [-900000nm -1550000nm -900000nm -1854800nm 203200nm]
+ElementLine [-900000nm 1550000nm 900000nm 1550000nm 203200nm]
+)