(module ST_UFQFPN-20_3x3mm_P0.5mm (layer F.Cu) (tedit 5BA58892)
  (descr "UFQFPN 20-lead, 3 x 3 mm, 0.5 mm pitch, ultra thin fine pitch quad flat package (http://www.st.com/resource/en/datasheet/stm8s003f3.pdf)")
  (tags "UFQFPN 0.5")
  (attr smd)
  (fp_text reference REF** (at 0 -2.5) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text value ST_UFQFPN-20_3x3mm_P0.5mm (at 0 2.5) (layer F.Fab)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text user %R (at 0 0) (layer F.Fab)
    (effects (font (size 0.7 0.7) (thickness 0.1)))
  )
  (fp_line (start -0.5 -1.5) (end 1.5 -1.5) (layer F.Fab) (width 0.1))
  (fp_line (start 1.5 -1.5) (end 1.5 1.5) (layer F.Fab) (width 0.1))
  (fp_line (start 1.5 1.5) (end -1.5 1.5) (layer F.Fab) (width 0.1))
  (fp_line (start -1.5 1.5) (end -1.5 -0.5) (layer F.Fab) (width 0.1))
  (fp_line (start -1.5 -0.5) (end -0.5 -1.5) (layer F.Fab) (width 0.1))
  (fp_line (start 1.62 -1.62) (end 1.62 -1.32) (layer F.SilkS) (width 0.12))
  (fp_line (start -1.62 1.62) (end -1.62 1.32) (layer F.SilkS) (width 0.12))
  (fp_line (start 1.62 1.62) (end 1.62 1.32) (layer F.SilkS) (width 0.12))
  (fp_line (start -1.62 -1.62) (end -1.32 -1.62) (layer F.SilkS) (width 0.12))
  (fp_line (start -1.62 1.62) (end -1.32 1.62) (layer F.SilkS) (width 0.12))
  (fp_line (start 1.62 1.62) (end 1.32 1.62) (layer F.SilkS) (width 0.12))
  (fp_line (start 1.62 -1.62) (end 1.32 -1.62) (layer F.SilkS) (width 0.12))
  (fp_line (start -1.75 -1.75) (end 1.75 -1.75) (layer F.CrtYd) (width 0.05))
  (fp_line (start 1.75 -1.75) (end 1.75 1.75) (layer F.CrtYd) (width 0.05))
  (fp_line (start 1.75 1.75) (end -1.75 1.75) (layer F.CrtYd) (width 0.05))
  (fp_line (start -1.75 1.75) (end -1.75 -1.75) (layer F.CrtYd) (width 0.05))
  (pad 1 smd custom (at -1.475 -1) (size 0.35 0.3) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy 0.175 -0.15) (xy 0.325 0) (xy 0.325 0.15) (xy 0.175 0.15)) (width 0))
    ))
  (pad 2 smd rect (at -1.3 -0.5) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (pad 3 smd rect (at -1.3 0) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (pad 4 smd rect (at -1.3 0.5) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (pad 5 smd custom (at -1.475 1) (size 0.35 0.3) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy 0.175 0.15) (xy 0.325 0) (xy 0.325 -0.15) (xy 0.175 -0.15)) (width 0))
    ))
  (pad 6 smd custom (at -1 1.475) (size 0.3 0.35) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy -0.15 -0.175) (xy 0 -0.325) (xy 0.15 -0.325) (xy 0.15 -0.175)) (width 0))
    ))
  (pad 7 smd rect (at -0.5 1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (pad 8 smd rect (at 0 1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (pad 9 smd rect (at 0.5 1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (pad 10 smd custom (at 1 1.475) (size 0.3 0.35) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy 0.15 -0.175) (xy 0 -0.325) (xy -0.15 -0.325) (xy -0.15 -0.175)) (width 0))
    ))
  (pad 11 smd custom (at 1.475 1) (size 0.35 0.3) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy -0.175 0.15) (xy -0.325 0) (xy -0.325 -0.15) (xy -0.175 -0.15)) (width 0))
    ))
  (pad 12 smd rect (at 1.3 0.5) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (pad 13 smd rect (at 1.3 0) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (pad 14 smd rect (at 1.3 -0.5) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (pad 15 smd custom (at 1.475 -1) (size 0.35 0.3) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy -0.175 -0.15) (xy -0.325 0) (xy -0.325 0.15) (xy -0.175 0.15)) (width 0))
    ))
  (pad 16 smd custom (at 1 -1.475) (size 0.3 0.35) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy 0.15 0.175) (xy 0 0.325) (xy -0.15 0.325) (xy -0.15 0.175)) (width 0))
    ))
  (pad 17 smd rect (at 0.5 -1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (pad 18 smd rect (at 0 -1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (pad 19 smd rect (at -0.5 -1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (pad 20 smd custom (at -1 -1.475) (size 0.3 0.35) (layers F.Cu F.Paste F.Mask)
    (zone_connect 2)
    (options (clearance outline) (anchor rect))
    (primitives
      (gr_poly (pts
         (xy -0.15 0.175) (xy 0 0.325) (xy 0.15 0.325) (xy 0.15 0.175)) (width 0))
    ))
  (model ${KISYS3DMOD}/Package_DFN_QFN.3dshapes/ST_UFQFPN-20_3x3mm_P0.5mm.wrl
    (at (xyz 0 0 0))
    (scale (xyz 1 1 1))
    (rotate (xyz 0 0 0))
  )
)
