imrishabh18/rp2040-motor-controller
An RP2040-based NEMA17 stepper-motor controller with USB-C programming and PD motor-power negotiation, DRV8825 dual H-bridge drive, current/temperature telemetry, protected power filtering, status RGB LED, buzzer alarm, and optional magnetic encoder.
- Version
- 1.0.42
- License
- unset
- Stars
- 3
scripts/analyze-style.ts
import { analyzeSchematicPlacement } from "../vendor/schematic-style-analysis";
const file = process.argv[2] ?? "dist/schematic/circuit.json";
const analysis = analyzeSchematicPlacement(await Bun.file(file).json());
await Bun.write(
"reports/schematic-style.json",
JSON.stringify(analysis.getIssues(), null, 2),
);
console.log(analysis.toString());
console.log("Issue count:", analysis.getIssues().length);
if (analysis.getIssues().length) process.exitCode = 1;
