shibosoftwaredev/f1c100s-linux-nema17-stepper-controller

A four-layer NEMA 17 motor-controller PCB combining an Allwinner F1C100S Linux computer, USB‑PD/buck power system, W5500 Ethernet, STM32 real-time motion control, DRV8825 stepper driver, protection/temperature/current telemetry, USB interfaces, and local LED/buzzer diagnostics.

Version
0.4.56
License
unset
Stars
0

scripts/render-round5-pcb.mjs

import fs from "node:fs"
import { Resvg } from "@resvg/resvg-js"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
const c=JSON.parse(fs.readFileSync(process.argv[3]??"dist/index/circuit.json","utf8"))
const prefix=process.argv[2]??"reports/round5-pcb"
for(const layer of ["top","bottom"]) {
  const svg=convertCircuitJsonToPcbSvg(c,{layer,width:2000,height:2000,
    shouldDrawErrors:false,shouldDrawWarnings:false,showCourtyards:true,
    showFabricationNotes:false,showPcbNotes:false,includeVersion:false})
  fs.writeFileSync(`${prefix}-${layer}.svg`,svg)
  fs.writeFileSync(`${prefix}-${layer}.png`,new Resvg(svg).render().asPng())
}