PCB stuff started
This commit is contained in:
parent
827cfeea21
commit
a6ed52b4bd
5 changed files with 108 additions and 1 deletions
|
@ -13,6 +13,7 @@ const u = require('./utils')
|
|||
const io = require('./io')
|
||||
const points_lib = require('./points')
|
||||
const outline_lib = require('./outline')
|
||||
const pcb_lib = require('./pcb')
|
||||
|
||||
// command line args
|
||||
|
||||
|
@ -67,6 +68,12 @@ for (const [name, outline] of Object.entries(outlines)) {
|
|||
io.dump_model(outline, path.join(args.o, `outline/${name}`), args.debug)
|
||||
}
|
||||
|
||||
// pcb
|
||||
|
||||
console.log('Scaffolding PCB...')
|
||||
const pcb = pcb_lib.parse(config.pcb, points, outlines)
|
||||
fs.writeFileSync(path.join(args.o, `pcb/pcb.kicad_pcb`, pcb))
|
||||
|
||||
// goodbye
|
||||
|
||||
console.log('Done.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue