ShiboSoftwareDev/f1c100s-linux-gameboy

Restores PCB assembly metadata by assigning part numbers, managing 3D CAD models and orientations, removing test-point bodies, and validating top-side SMT solder-paste features.

Version
1.0.8
License
unset
Stars
0

modules/f1c100s/src/BreakoutTestPoint.tsx

import type { Terminal } from "./layout";
import { EXIT_DIAMETER, EXIT_DRILL } from "./profiles";

/** Bare plated test point, connected across the complete four-layer stack.
 * The explicit empty footprint suppresses core's default hole; the child
 * footprint is available immediately when restoring an imported module. */
export function BreakoutTestPoint({ terminal }: { terminal: Terminal }) {
	return (
		<testpoint
			name={terminal.name}
			footprintVariant="through_hole"
			padDiameter={EXIT_DIAMETER}
			holeDiameter={EXIT_DRILL}
			pcbX={terminal.x}
			pcbY={terminal.y}
			layer="top"
			doNotPlace
			footprint={<footprint />}
		>
			<footprint>
				<platedhole
					portHints={["pin1"]}
					shape="circle"
					holeDiameter={EXIT_DRILL}
					outerDiameter={EXIT_DIAMETER}
					pcbX={0}
					pcbY={0}
					coveredWithSolderMask={false}
				/>
			</footprint>
		</testpoint>
	);
}