Add courtyard

This commit is contained in:
Marco Massarelli 2023-06-16 10:26:26 +02:00
parent 99459c3d4d
commit 7004aae9b4
1 changed files with 57 additions and 0 deletions

View File

@ -36,10 +36,39 @@ module.exports = {
(fp_line (start 1.5 -2.9) (end 1.5 -1.4) (width 0.08) (layer "Dwgs.User"))
(fp_line (start 3.4 -1.4) (end -3.4 -1.4) (width 0.08) (layer "Dwgs.User"))
(fp_line (start 3.4 1.4) (end 3.4 -1.4) (width 0.08) (layer "Dwgs.User"))
(pad "" np_thru_hole circle (at -1.5 0 ${180 + p.rot}) (size 0.85 0.85) (drill 0.85) (layers "*.Cu" "*.Mask"))
(pad "" np_thru_hole circle (at 1.5 0 ${180 + p.rot}) (size 0.85 0.85) (drill 0.85) (layers "*.Cu" "*.Mask"))
`
const front = `
(fp_line (start -4 -1.4) (end -4 -0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -4 -1.4) (end -1.5 -1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -4 -0.9) (end -3.4 -0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -4 0.9) (end -4 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -3.4 0.9) (end -4 0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -3.4 0.9) (end -3.4 -0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -2.55 1.4) (end -4 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -2.55 2.4) (end -2.55 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -2.55 2.4) (end -1.95 2.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -1.95 1.4) (end -1.05 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -1.95 2.4) (end -1.95 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -1.5 -2.9) (end 1.5 -2.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -1.5 -1.4) (end -1.5 -2.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -1.05 2.4) (end -1.05 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -1.05 2.4) (end -0.45 2.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -0.45 1.4) (end 1.95 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -0.45 2.4) (end -0.45 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 1.5 -2.9) (end 1.5 -1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 1.5 -1.4) (end 4 -1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 1.95 2.4) (end 1.95 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 1.95 2.4) (end 2.55 2.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 2.55 1.4) (end 4 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 2.55 2.4) (end 2.55 1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 3.4 -0.9) (end 4 -0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 3.4 0.9) (end 3.4 -0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 4 -0.9) (end 4 -1.4) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 4 0.9) (end 3.4 0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start 4 1.4) (end 4 0.9) (width 0.05) (layer "F.CrtYd"))
(fp_line (start -3.55 -0.65) (end -3.55 0.65) (width 0.12) (layer "F.SilkS"))
(fp_line (start -3.05 -1.55) (end 3.05 -1.55) (width 0.12) (layer "F.SilkS"))
(fp_line (start -2.7 1.55) (end -3.05 1.55) (width 0.12) (layer "F.SilkS"))
@ -54,6 +83,34 @@ module.exports = {
(pad "MP" smd roundrect (at 3.7 1.15 ${270 + p.rot}) (size 0.7 1.1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.15) ${p.MP.str})
`
const back = `
(fp_line (start -4 -1.4) (end -4 -0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -4 -1.4) (end -1.5 -1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -4 -0.9) (end -3.4 -0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -4 0.9) (end -4 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -3.4 0.9) (end -4 0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -3.4 0.9) (end -3.4 -0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -2.55 1.4) (end -4 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -2.55 2.4) (end -2.55 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -2.55 2.4) (end -1.95 2.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -1.95 1.4) (end -1.05 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -1.95 2.4) (end -1.95 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -1.5 -2.9) (end 1.5 -2.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -1.5 -1.4) (end -1.5 -2.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -1.05 2.4) (end -1.05 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -1.05 2.4) (end -0.45 2.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -0.45 1.4) (end 1.95 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -0.45 2.4) (end -0.45 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 1.5 -2.9) (end 1.5 -1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 1.5 -1.4) (end 4 -1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 1.95 2.4) (end 1.95 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 1.95 2.4) (end 2.55 2.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 2.55 1.4) (end 4 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 2.55 2.4) (end 2.55 1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 3.4 -0.9) (end 4 -0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 3.4 0.9) (end 3.4 -0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 4 -0.9) (end 4 -1.4) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 4 0.9) (end 3.4 0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start 4 1.4) (end 4 0.9) (width 0.05) (layer "B.CrtYd"))
(fp_line (start -3.55 -0.65) (end -3.55 0.65) (width 0.12) (layer "B.SilkS"))
(fp_line (start -3.05 -1.55) (end 3.05 -1.55) (width 0.12) (layer "B.SilkS"))
(fp_line (start -2.7 1.55) (end -3.05 1.55) (width 0.12) (layer "B.SilkS"))