fixed soldermask

This commit is contained in:
King Kévin 2014-03-06 17:00:37 +01:00
parent a792c8f790
commit bfab2bc8e5
2 changed files with 5 additions and 5 deletions

View File

@ -8,6 +8,6 @@ ElementLine[-6.35mm -2.4mm 6.35mm -2.4mm 0.2mm]
ElementLine[6.35mm -2.4mm 6.35mm 2.4mm 0.2mm]
ElementLine[6.35mm 2.4mm -6.35mm 2.4mm 0.2mm]
ElementLine[-6.35mm 2.4mm -6.35mm -2.4mm 0.2mm]
Pad[-3.0mm 0.0mm -6.5mm 0.0mm 2.0mm 0.4mm 0.1mm "" "1" "square"]
Pad[3.0mm 0.0mm 6.5mm 0.0mm 2.0mm 0.4mm 0.1mm "" "2" "square"]
Pad[-3.0mm 0.0mm -6.5mm 0.0mm 2.0mm 0.4mm 2.15mm "" "1" "square"]
Pad[3.0mm 0.0mm 6.5mm 0.0mm 2.0mm 0.4mm 2.15mm "" "2" "square"]
)

View File

@ -7,7 +7,7 @@ require_relative 'element'
# global dimensions
UNIT = "mm"
SILKSCREEN = 0.2
SOLDERMASK = 0.1
SOLDERMASK = 0.075
CLEARANCE = 0.4
name = File.basename(__FILE__,".rb")+".fp"
@ -34,8 +34,8 @@ File.open(name,"w") do |fp|
fp.puts element("ElementLine",[left,bottom,left,top,SILKSCREEN])
# pads
fp.puts element("Pad",[-4.0/2-2.0/2,0,-4.0/2-5.5+2.0/2,0,2.0,CLEARANCE,SOLDERMASK,"","1","square"])
fp.puts element("Pad",[4.0/2+2.0/2,0,4.0/2+5.5-2.0/2,0,2.0,CLEARANCE,SOLDERMASK,"","2","square"])
fp.puts element("Pad",[-4.0/2-2.0/2,0,-4.0/2-5.5+2.0/2,0,2.0,CLEARANCE,2.0+2*SOLDERMASK,"","1","square"])
fp.puts element("Pad",[4.0/2+2.0/2,0,4.0/2+5.5-2.0/2,0,2.0,CLEARANCE,2.0+2*SOLDERMASK,"","2","square"])
# end of element
fp.puts ")"