AnasSarkiz/BlinkBuddy

This code defines and renders a 24mm square PCB silkscreen with a centered QR code graphic and labeling for open project instructions.

Version
1.0.11
License
unset
Stars
0

imports/XC6220B331MR_G.tsx

import type { ChipProps } from "@tscircuit/props";

const pinLabels = {
	pin1: ["VIN"],
	pin2: ["VSS"],
	pin3: ["CE"],
	pin4: ["NC"],
	pin5: ["VOUT"],
} as const;

export const XC6220B331MR_G = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			supplierPartNumbers={{
				jlcpcb: ["C86534"],
			}}
			manufacturerPartNumber="XC6220B331MR_G"
			footprint={
				<footprint>
					<smtpad
						portHints={["pin1"]}
						pcbX="-1.299972mm"
						pcbY="0.94996mm"
						width="0.8999982mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="-1.299972mm"
						pcbY="0mm"
						width="0.8999982mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="-1.299972mm"
						pcbY="-0.94996mm"
						width="0.8999982mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin4"]}
						pcbX="1.299972mm"
						pcbY="-0.94996mm"
						width="0.8999982mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin5"]}
						pcbX="1.299972mm"
						pcbY="0.94996mm"
						width="0.8999982mm"
						height="0.499999mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -0.8000238000000763, y: 1.450009800000089 },
							{ x: 0.8000237999999626, y: 1.450009800000089 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.8000238000000763, y: -1.4500097999998616 },
							{ x: 0.8000237999999626, y: -1.4500097999998616 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.8000237999999626, y: -1.4500097999998616 },
							{ x: 0.8000237999999626, y: -1.4256511999999475 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.8000237999999626, y: -0.47444659999996475 },
							{ x: 0.8000237999999626, y: 0.4743958000000248 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.8000237999999626, y: 1.4255750000000944 },
							{ x: 0.8000237999999626, y: 1.450009800000089 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.8000238000000763, y: 1.450009800000089 },
							{ x: -0.8000238000000763, y: 1.4255750000000944 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.8000238000000763, y: -1.4256511999999475 },
							{ x: -0.8000238000000763, y: -1.4500097999998616 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.1430000000001428, y: 1.6509999999999536 },
							{ x: -1.1473274200614014, y: 1.6181299812719772 },
							{ x: -1.1600147737194675, y: 1.5874999999999773 },
							{ x: -1.1801974387893779, y: 1.5611974387893497 },
							{ x: -1.2065000000001191, y: 1.5410147737193256 },
							{ x: -1.237129981272119, y: 1.5283274200612595 },
							{ x: -1.2700000000000955, y: 1.524000000000001 },
							{ x: -1.3028700187281856, y: 1.5283274200612595 },
							{ x: -1.3335000000000719, y: 1.5410147737193256 },
							{ x: -1.359802561210813, y: 1.5611974387893497 },
							{ x: -1.3799852262806098, y: 1.5874999999999773 },
							{ x: -1.3926725799387896, y: 1.6181299812719772 },
							{ x: -1.3970000000000482, y: 1.6509999999999536 },
							{ x: -1.3926725799387896, y: 1.6838700187280438 },
							{ x: -1.3799852262806098, y: 1.71449999999993 },
							{ x: -1.359802561210813, y: 1.740802561210785 },
							{ x: -1.3335000000000719, y: 1.7609852262805816 },
							{ x: -1.3028700187281856, y: 1.7736725799386477 },
							{ x: -1.2700000000000955, y: 1.7779999999999063 },
							{ x: -1.237129981272119, y: 1.7736725799386477 },
							{ x: -1.2065000000001191, y: 1.7609852262805816 },
							{ x: -1.1801974387893779, y: 1.740802561210785 },
							{ x: -1.1600147737194675, y: 1.71449999999993 },
							{ x: -1.1473274200614014, y: 1.6838700187280438 },
							{ x: -1.1430000000001428, y: 1.6509999999999536 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0.0120142mm"
						pcbY="2.790065mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -1.9905858000000762, y: 2.040065000000027 },
							{ x: 2.0146141999999827, y: 2.040065000000027 },
							{ x: 2.0146141999999827, y: -1.7365350000000035 },
							{ x: -1.9905858000000762, y: -1.7365350000000035 },
							{ x: -1.9905858000000762, y: 2.040065000000027 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C86534.obj?uuid=a96fadd2d8f74c3887edfda2104d5d81",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C86534.step?uuid=a96fadd2d8f74c3887edfda2104d5d81",
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: -0.000012699999956566899,
					y: 0,
					z: -0.148939,
				},
			}}
			{...props}
		/>
	);
};