From d78b6ab4cd0b63fcb872cb97328c6a8ae6216d60 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Wed, 26 Mar 2014 16:54:57 +0100 Subject: [PATCH 1/4] add output files to clean --- hardware/Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/Rakefile b/hardware/Rakefile index 3cee38c..bd25a79 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -90,6 +90,8 @@ task :sch2pcb do sh "gsch2pcb #{target[:vsch]} --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" From cf98c8742c841d9084849772b8d2d061206b1b35 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Thu, 27 Mar 2014 14:15:27 +0100 Subject: [PATCH 2/4] fix sch2pcb, now used the source schematic --- hardware/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/Rakefile b/hardware/Rakefile index bd25a79..6f131f7 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -87,7 +87,7 @@ 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") From 4ba5fab38c65b81431aa060089e79e2848e7c3ce Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Thu, 27 Mar 2014 14:36:40 +0100 Subject: [PATCH 3/4] fixed footprint --- hardware/lib/symbols/output_led-green_kingbright_KP-2012SGC.sym | 2 +- .../lib/symbols/output_led-red_kingbright_KPHCM-2012EC-T.sym | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From 63e548ce35f6b5e8458569c3227918ba7dd980b8 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Thu, 27 Mar 2014 14:37:05 +0100 Subject: [PATCH 4/4] fixed typo --- hardware/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/Rakefile b/hardware/Rakefile index 6f131f7..0b0e984 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -130,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 = []