AnasSarkiz/rp2040-usb-c-single-axis-dm542t-motion-controller--01a0e89c

A USB‑C RP2040 controller board with external QSPI flash, crystal clock, regulated 3.3/1.1/5 V power, boost-converted motor-driver supply, protected USB and limit inputs, status LEDs, reset/boot switches, and AO3400A MOSFET outputs for stepper-control signals.

Version
0.1.0-prototype.19
License
unset
Stars
0

tooling/regression-tests/tscircuit-autorouter/tests/circuit-json-via-board-rule.test.ts

import { expect, test } from "bun:test"
import { createPcbBoardElement } from "lib/testing/utils/convertToCircuitJson"

test("router board conversion carries the requested via drill clearance", () => {
  const board = createPcbBoardElement({
    layerCount: 4,
    minTraceWidth: 0.15,
    minViaHoleEdgeToViaHoleEdgeClearance: 0.46,
    bounds: { minX: -5, maxX: 5, minY: -5, maxY: 5 },
    obstacles: [],
    connections: [],
  })
  expect(board.min_via_hole_edge_to_via_hole_edge_clearance).toBe(0.46)
})