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/GL5528.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
} as const;
export const GL5528 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C125627"],
}}
manufacturerPartNumber="GL5528"
footprint={
<footprint>
<platedhole
portHints={["pin2"]}
pcbX="0mm"
pcbY="-1.700022mm"
outerDiameter="1.524mm"
holeDiameter="0.762mm"
shape="circle"
/>
<platedhole
portHints={["pin1"]}
pcbX="0mm"
pcbY="1.700022mm"
outerDiameter="1.524mm"
holeDiameter="0.762mm"
shape="circle"
/>
<silkscreenpath
route={[
{ x: 2.0999958000000447, y: -1.2999720000000252 },
{ x: 2.0999958000000447, y: 1.2000229999999874 },
]}
/>
<silkscreenpath
route={[
{ x: -2.2999954000000002, y: -1.0999724000000128 },
{ x: -2.2999954000000002, y: 1.2000229999999874 },
]}
/>
<silkscreenpath
route={[
{ x: -2.2999954000000002, y: 0.7000239999999565 },
{ x: -1.5999967999999853, y: 0.7000239999999565 },
{ x: -1.5999967999999853, y: -0.7999730000000227 },
{ x: -0.999998000000005, y: -0.7999730000000227 },
{ x: -0.999998000000005, y: 0.7000239999999565 },
{ x: -0.299999400000047, y: 0.7000239999999565 },
{ x: -0.299999400000047, y: -0.7999730000000227 },
]}
/>
<silkscreenpath
route={[
{ x: 0.299999400000047, y: -0.7999730000000227 },
{ x: 0.299999400000047, y: 0.7000239999999565 },
{ x: 0.7999983999999927, y: 0.7000239999999565 },
{ x: 0.7999983999999927, y: -0.8999728000000289 },
{ x: 1.2999973999999384, y: -0.8999728000000289 },
{ x: 1.2999973999999384, y: 0.7000239999999565 },
{ x: 2.0999958000000447, y: 0.7000239999999565 },
]}
/>
<silkscreenpath
route={[
{ x: -2.30123999999995, y: -1.0990580000000136 },
{ x: -2.209772783081519, y: -1.327613021590878 },
{ x: -2.095061684773327, y: -1.5454317847637071 },
{ x: -1.9583475266755954, y: -1.7501581598129974 },
{ x: -1.8011091358844737, y: -1.9395776364426638 },
{ x: -1.6250473486274473, y: -2.1116412779624625 },
{ x: -1.432066612440849, y: -2.2644878844871243 },
{ x: -1.2242543859005082, y: -2.3964641254002004 },
{ x: -1.0038585587333841, y: -2.506142423310706 },
{ x: -0.7732631365587395, y: -2.5923363960540087 },
{ x: -0.5349624532721577, y: -2.654113689701262 },
{ x: -0.29153419001823977, y: -2.690806063764171 },
{ x: -0.04561149260041475, y: -2.7020166195033255 },
{ x: 0.20014551106470435, y: -2.687624093153431 },
{ x: 0.4430784853581713, y: -2.647784167624337 },
{ x: 0.6805596419807785, y: -2.5829277884903945 },
{ x: 0.910020164548655, y: -2.4937565024835635 },
{ x: 1.1289779952922459, y: -2.381234868913509 },
{ x: 1.3350646832950588, y: -2.246580026099707 },
{ x: 1.5260510038548887, y: -2.091248525674871 },
{ x: 1.6998710718447683, y: -1.916920577171993 },
{ x: 1.8546446882421037, y: -1.7254818733200636 },
{ x: 1.9886976781048702, y: -1.519003192643197 },
{ x: 2.1005799999999795, y: -1.2997179999999844 },
]}
/>
<silkscreenpath
route={[
{ x: 2.1005799999999795, y: 1.199641999999983 },
{ x: 1.999125408899772, y: 1.4238173076734313 },
{ x: 1.8749118325794143, y: 1.636228677622256 },
{ x: 1.7292857987792445, y: 1.8345734806936775 },
{ x: 1.5638259553414287, y: 2.0167015752737427 },
{ x: 1.3803259569991724, y: 2.1806386157319935 },
{ x: 1.1807750214003931, y: 2.3246074551641414 },
{ x: 0.9673363651459681, y: 2.447047410416303 },
{ x: 0.7423237536071383, y: 2.5466311805512873 },
{ x: 0.5081764187288513, y: 2.6222792353522664 },
{ x: 0.26743261672305607, y: 2.6731715178875675 },
{ x: 0.022702112297793064, y: 2.69875633427435 },
{ x: -0.22336211229776382, y: 2.69875633427435 },
{ x: -0.46809261672308367, y: 2.6731715178875675 },
{ x: -0.7088364187288221, y: 2.6222792353522664 },
{ x: -0.9429837536071659, y: 2.5466311805512873 },
{ x: -1.1679963651459957, y: 2.447047410416303 },
{ x: -1.381435021400307, y: 2.3246074551641414 },
{ x: -1.5809859569992, y: 2.1806386157319935 },
{ x: -1.7644859553413994, y: 2.0167015752737427 },
{ x: -1.929945798779272, y: 1.8345734806936775 },
{ x: -2.075571832579328, y: 1.636228677622256 },
{ x: -2.199785408899686, y: 1.4238173076734313 },
{ x: -2.30123999999995, y: 1.199641999999983 },
]}
/>
<silkscreentext
text="{NAME}"
pcbX="-0.1143mm"
pcbY="3.690622mm"
anchorAlignment="center"
fontSize="1mm"
/>
<courtyardoutline
outline={[
{ x: -2.561399999999992, y: 2.940621999999962 },
{ x: 2.33280000000002, y: 2.940621999999962 },
{ x: 2.33280000000002, y: -2.9695780000000127 },
{ x: -2.561399999999992, y: -2.9695780000000127 },
{ x: -2.561399999999992, y: 2.940621999999962 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C125627.obj?uuid=304e22b90f404b44aa9fef89fe4d3bcf",
stepUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C125627.step?uuid=304e22b90f404b44aa9fef89fe4d3bcf",
pcbRotationOffset: 0,
modelOriginPosition: {
x: 0.10001249999999118,
y: 0.000012700000013410317,
z: -0.000006999999999646178,
},
}}
{...props}
/>
);
};