diff --git a/hardware/Rakefile b/hardware/Rakefile index 3cee38c..0b0e984 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -87,9 +87,11 @@ end desc "convert schematic to pcb layout" task :sch2pcb do targets.each do |target| - sh "gsch2pcb #{target[:vsch]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target[:name]}" + sh "gsch2pcb #{target[:sch]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target[:name]}" end end +CLOBBER.include("*.net") +CLOBBER.include("*.new.pcb") photos = targets.collect{|target| ["#{target[:name]}_layout-top.png","#{target[:name]}_layout-bottom.png"]}.flatten desc "render layout" @@ -128,7 +130,7 @@ end # ================ # generate gnetlist bom2 and parse them -# arguments: schematic=schematic to usse, attributes=the attributs to use for generating bom2 +# arguments: schematic=schematic to use, attributes=the attributes to use for generating bom2 # return [{:refdes => [refdes of component], => text of attributes}] def bom2(schematic, attributes) to_return = [] diff --git a/hardware/lib/symbols/output_led-green_kingbright_KP-2012SGC.sym b/hardware/lib/symbols/output_led-green_kingbright_KP-2012SGC.sym index cf3ee35..d40e0df 100644 --- a/hardware/lib/symbols/output_led-green_kingbright_KP-2012SGC.sym +++ b/hardware/lib/symbols/output_led-green_kingbright_KP-2012SGC.sym @@ -52,4 +52,4 @@ datasheet=http://www.kingbright.com/attachments/file/psearch/000/00/00/KP-2012SG T 0 1700 8 10 0 0 0 0 1 farnell-id=1318243 T 0 1900 8 10 0 0 0 0 1 -footprint=SMD_DIODE 120 60 +footprint=SMD_DIODE 80 50 diff --git a/hardware/lib/symbols/output_led-red_kingbright_KPHCM-2012EC-T.sym b/hardware/lib/symbols/output_led-red_kingbright_KPHCM-2012EC-T.sym index 99427fb..a02ca91 100644 --- a/hardware/lib/symbols/output_led-red_kingbright_KPHCM-2012EC-T.sym +++ b/hardware/lib/symbols/output_led-red_kingbright_KPHCM-2012EC-T.sym @@ -52,4 +52,4 @@ datasheet=http://www.kingbright-europe.de/_daten/KPHCM-2012EC-T(Ver.4).pdf T 0 1700 8 10 0 0 0 0 1 farnell-id=1686066 T 0 1900 8 10 0 0 0 0 1 -footprint=SMD_DIODE 120 60 +footprint=SMD_DIODE 80 50