imrishabh18/rp2040-motor-controller

The circuit implements a powered USB interface with a W25Q16 flash memory chip, a RP2040 microcontroller, and AO3400A MOSFETs for switch control, enabling USB communication, memory storage, and device power management.

Version
1.0.19
License
unset
Stars
0

scripts/render-placement.tsx

import { Circuit } from "tscircuit";
import Board from "../index.circuit";
import { mkdirSync, writeFileSync } from "node:fs";
const c=new Circuit(); c.add(<Board routingDisabled />); await c.renderUntilSettled();
mkdirSync('dist/placement',{recursive:true});writeFileSync('dist/placement/circuit.json',JSON.stringify(c.getCircuitJson(),null,2));
console.log(c.getCircuitJson().filter(x=>x.type.endsWith('_error')));