usb-a-pcb.fpd 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* MACHINE-GENERATED ! */
  2. frame contacts {
  3. table
  4. { n, x, y, h }
  5. { 1, c1, yl, hl }
  6. { 2, c2, ys, hs }
  7. { 3, -c2, ys, hs }
  8. { 4, -c1, yl, hl }
  9. table
  10. { ys, yl }
  11. { (b+bs)/2, (b+bl)/2 }
  12. table
  13. { hs, hl }
  14. { b-bs, b-bl }
  15. __0: vec @(x, y)
  16. __1: vec .(s/2, h/2)
  17. __2: vec __0(-s/2, -h/2)
  18. pad "$n" . __1 bare
  19. }
  20. frame outline {
  21. set width = 5mil
  22. __0: vec @(w/2, d/2)
  23. __1: vec @(-w/2, -d/2)
  24. __2: vec @(w/2, -d/2)
  25. line __1 . width
  26. line . __0 width
  27. __3: vec @(-w/2, d/2)
  28. line __1 . width
  29. }
  30. package "USB-A-PCB"
  31. unit mm
  32. table
  33. { w, d }
  34. { 12mm, 11.75mm }
  35. table
  36. { s, c1, c2, b, bl, bs }
  37. { 1mm, 3.5mm, 1mm, 8.65mm, b-7.41mm, b-6.41mm }
  38. __0: vec @(0mm, -d/2)
  39. frame contacts .
  40. frame outline @
  41. measy outline.__1 >> outline.__3 1mm
  42. measx outline.__3 >> outline.__0 1mm
  43. measx __0 -> contacts.__0 -1mm
  44. measx __0 >> contacts.__0 -2mm
  45. measy outline.__2 -> contacts.__2 -1mm
  46. measy outline.__2 >> contacts.__2 -2mm
  47. measx contacts.__2 -> contacts.__1 -1mm
  48. measy outline.__2 >> contacts.__1 -3mm