(module Package_DFN_QFN:ST_UFQFPN-20_3x3mm_P0.5mm (layer F.Cu) (tedit 649DCDAD)
  (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))
  (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) (xy -0.15 -0.175)
) (width 0))
    ))
  (pad 19 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 17 smd rect (at 0.5 -1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (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) (xy 0.15 -0.175)
) (width 0))
    ))
  (pad 15 smd custom (at 1.475 -1) (size 0.3 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) (xy 0.175 -0.15)
) (width 0))
    ))
  (pad 14 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 12 smd rect (at 1.3 0.5) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (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) (xy 0.175 0.15)
) (width 0))
    ))
  (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) (xy 0.15 0.175)
) (width 0))
    ))
  (pad 9 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 7 smd rect (at -0.5 1.3) (size 0.3 0.7) (layers F.Cu F.Paste F.Mask))
  (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) (xy -0.15 0.175)
) (width 0))
    ))
  (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) (xy -0.175 0.15)
) (width 0))
    ))
  (pad 4 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 2 smd rect (at -1.3 -0.5) (size 0.7 0.3) (layers F.Cu F.Paste F.Mask))
  (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) (xy -0.175 -0.15)
) (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))
  )
)
