abse/gameboy-advance

Validates and exports a four-layer Game Boy–style PCB assembly with RP2350 MCU, 32MB flash, USB-C, LCD and speaker connectors, battery buck-boost power, buttons, and verified routing, connectivity, clearances, CAD models, and physical DRC.

Version
0.0.39
License
unset
Stars
0

checks/preflight-check.ts

PCBPCB preview for checks/preflight-check.ts
SchematicSchematic preview for checks/preflight-check.ts
import * as checks from '@tscircuit/checks'
const c=await Bun.file('../manual-preflight.json').json(),results:any={};for(const n of ['checkEachPcbPortConnectedToPcbTraces','checkEachPcbTraceNonOverlapping','checkTracesAreContiguous','checkPadPadClearance','checkPadTraceClearance','checkViaPadClearance','checkViaTraceClearance','checkSameNetViaSpacing','checkDifferentNetViaSpacing','checkCopperToBoardEdgeClearance','checkHoleTraceClearance']){results[n]=await(checks as any)[n](c);console.log(n,results[n].length)}await Bun.write('../manual-preflight-checks.json',JSON.stringify(results,null,2))