Merge remote-tracking branch 'hw-template/master'
This commit is contained in:
commit
be7c17a1ec
|
@ -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], <attributes> => text of attributes}]
|
||||
def bom2(schematic, attributes)
|
||||
to_return = []
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue