ShiboSoftwareDev/linux-gameboy-advance

Restores PCB assembly metadata by assigning part numbers and 3D CAD models, removing test-point bodies, and validating top-side SMT solder-paste features without altering copper or pads.

Version
1.0.17
License
unset
Stars
0

imports/RK10J12E002L.tsx

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

const pinLabels = {
  pin1: ["pin1"],
  pin2: ["pin2"],
  pin3: ["pin3"],
  pin4: ["pin4"],
  pin5: ["pin5"],
  pin6: ["EH2"],
  pin7: ["EH1"]
} as const

export const RK10J12E002L = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin6" pinNumber={6} aliases={["EH2","EH"]} direction="right" schX={0.8} schY={-0.2} schStemLength={0.2} />
          <port name="pin7" pinNumber={7} aliases={["EH1","EH"]} direction="left" schX={-0.8} schY={-0.2} schStemLength={0.2} />
          <port name="pin5" pinNumber={5} aliases={["5"]} direction="up" schX={0.2} schY={0.6} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="right" schX={0.8} schY={0} schStemLength={0.2} />
          <schematictext schX={0.34} schY={0.08} text="R2" fontSize={0.08} anchor="left" color="#0000FF" schRotation={0} />
          <schematictext schX={-0.48} schY={0.08} text="R1" fontSize={0.08} anchor="left" color="#0000FF" schRotation={0} />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="up" schX={-0.2} schY={0.6} schStemLength={0.2} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="left" schX={-0.8} schY={0} schStemLength={0.2} />
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="down" schX={0} schY={-0.6} schStemLength={0.2} />
          <schematicpath points={[{"x":-0.6,"y":0},{"x":-0.26,"y":0},{"x":-0.36,"y":0.02}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.6,"y":0},{"x":0.26,"y":0},{"x":0.36,"y":0.02}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":-0.2},{"x":0.2,"y":-0.4}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":0.2},{"x":0.2,"y":0.4}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.2,"y":-0.2},{"x":-0.2,"y":-0.4}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.2,"y":0.2},{"x":-0.2,"y":0.4}]} strokeColor="#880000" />
          <schematicrect schX={0.2} schY={0} width={0.12} height={0.4} strokeWidth={0.02} color="#880000" />
          <schematicrect schX={-0.2} schY={0} width={0.12} height={0.4} strokeWidth={0.02} color="#880000" />
          <schematicpath points={[{"x":0.2,"y":-0.4},{"x":-0.2,"y":-0.4}]} strokeColor="#880000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C231765"
  ]
}}
      manufacturerPartNumber="RK10J12E002L"
      footprint={<footprint>
        <platedhole  portHints={["pin7"]} pcbX="-4.99999mm" pcbY="5.3749892mm" holeWidth="0.9000236mm" holeHeight="1.5000224mm" outerWidth="1.5999968mm" outerHeight="2.1999956mm" shape="pill" />
<platedhole  portHints={["pin6"]} pcbX="4.99999mm" pcbY="5.3749892mm" holeWidth="0.9000236mm" holeHeight="1.5000224mm" outerWidth="1.5999968mm" outerHeight="2.1999956mm" shape="pill" />
<platedhole  portHints={["pin5"]} pcbX="3.999992mm" pcbY="-4.6249908mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole  portHints={["pin4"]} pcbX="-1.999996mm" pcbY="-4.6249908mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole  portHints={["pin3"]} pcbX="1.999996mm" pcbY="-4.6249908mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole  portHints={["pin2"]} pcbX="0mm" pcbY="-4.6249908mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole  portHints={["pin1"]} pcbX="-3.999992mm" pcbY="-4.6249908mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<silkscreenpath route={[{"x":-0.3999991999997974,"y":4.875117200000204},{"x":-1.4999969999998939,"y":5.975115000000187}]} />
<silkscreenpath route={[{"x":-1.9999959999997827,"y":3.275120400000219},{"x":-3.1999935999997433,"y":4.47511800000018}]} />
<silkscreenpath route={[{"x":5.350002000000131,"y":-2.124894199999744},{"x":5.350002000000131,"y":-1.7248695999998063}]} />
<silkscreenpath route={[{"x":5.0311304000001655,"y":-4.624889199999984},{"x":5.350002000000131,"y":-4.624889199999984}]} />
<silkscreenpath route={[{"x":-6.000013399999943,"y":-4.624889199999984},{"x":-5.0311303999998245,"y":-4.624889199999984}]} />
<silkscreenpath route={[{"x":-6.000013399999943,"y":-2.124894199999744},{"x":-6.000013399999943,"y":-0.7248715999999149}]} />
<silkscreenpath route={[{"x":5.350002000000131,"y":-2.124894199999744},{"x":5.350002000000131,"y":-4.624889199999984}]} />
<silkscreenpath route={[{"x":-6.000013399999943,"y":-2.124894199999744},{"x":-6.000013399999943,"y":-4.624889199999984}]} />
<silkscreenpath route={[{"x":-3.1999935999999707,"y":4.47511800000018},{"x":-3.3441935385992565,"y":4.682935669635754},{"x":-3.4386828062145014,"y":4.917570672161673},{"x":-3.478749891353914,"y":5.167323419480567},{"x":-3.4623969318597574,"y":5.419740508483301},{"x":-3.3904393341642844,"y":5.662235684185248},{"x":-3.266465114737457,"y":5.882717427244415},{"x":-3.0966559910830256,"y":6.070191872512282},{"x":-2.889479143206131,"y":6.215310995334335},{"x":-2.655265015232544,"y":6.310838731424155},{"x":-2.4056922092228206,"y":6.352011788211826},{"x":-2.1532051558849616,"y":6.336777156555627},{"x":-1.9103935988307512,"y":6.265894479788358},{"x":-1.6893648331024451,"y":6.142898175675441},{"x":-1.501139999999964,"y":5.973921200000177}]} />
<silkscreenpath route={[{"x":2.4999950000001263,"y":-3.6248911999998654},{"x":2.734034607412923,"y":-3.529969715829907},{"x":2.9644785609792734,"y":-3.4266246130932814},{"x":3.191023793325485,"y":-3.3149918056565184},{"x":3.413372364464408,"y":-3.1952181069262906},{"x":3.6312318536294015,"y":-3.0674610367666446},{"x":3.844315743851098,"y":-2.9318886143388454},{"x":4.052343798768447,"y":-2.788679137130657},{"x":4.255042431180414,"y":-2.6380209464696236},{"x":4.452145062853106,"y":-2.4801121798266195},{"x":4.643392475108612,"y":-2.3151605102366375},{"x":4.8285331497360175,"y":-2.1433828731775293},{"x":5.007323599773599,"y":-1.965005181270044},{"x":5.179528689731114,"y":-1.7802620271675096},{"x":5.34492194482516,"y":-1.5893963750338571},{"x":5.503285848828341,"y":-1.3926592410102785},{"x":5.654412130133892,"y":-1.190309363091501},{"x":5.798102035663533,"y":-0.9826128608488034},{"x":5.934166592256361,"y":-0.7698428854429267},{"x":6.06242685519635,"y":-0.5522792603916287},{"x":6.182714143550811,"y":-0.330208113559479},{"x":6.2948702620102495,"y":-0.10392150085976937},{"x":6.398747708938004,"y":0.12628297784294773},{"x":6.494209870357054,"y":0.36010257011901103},{"x":6.581131199616607,"y":0.5972297691383801},{"x":6.659397382504494,"y":0.8373527180856399},{"x":6.728905487587326,"y":1.080155620298001},{"x":6.7895641015796855,"y":1.3253191545838945},{"x":6.841293449566592,"y":1.5725208951760123},{"x":6.884025499918835,"y":1.821435735769569},{"x":6.917704053763941,"y":2.0717363170831504},{"x":6.942284818896951,"y":2.3230934573844024},{"x":6.957735468030592,"y":2.5751765854123505},{"x":6.964035681309724,"y":2.8276541751259856},{"x":6.9611771730365035,"y":3.080194181709885},{"x":6.949163702565329,"y":3.3324644782616133},{"x":6.928011069360537,"y":3.584133292585989},{"x":6.8977470922163775,"y":3.8348696435252805},{"x":6.858411572672253,"y":4.084343776246897},{"x":6.810056242667201,"y":4.332227595918766},{"x":6.7527446965056015,"y":4.578195099202276},{"x":6.6865523072207225,"y":4.821922802994322},{"x":6.611566127448214,"y":5.063090169854149},{"x":6.527884774939821,"y":5.301380029557322},{"x":6.435618302866146,"y":5.536478996220353},{"x":6.334888055080796,"y":5.768077880449368},{"x":6.2258265065355545,"y":5.995872095968366},{"x":6.108577089056439,"y":6.2195620601951305},{"x":5.983294002710636,"y":6.43885358823627},{"x":5.85014201300919,"y":6.653458279782285},{"x":5.7092962342192095,"y":6.863093898397096},{"x":5.560941899059799,"y":7.067484742698753},{"x":5.40527411509629,"y":7.266362008948363},{"x":5.242497608144959,"y":7.459464144565118},{"x":5.072826453028483,"y":7.646537192106507},{"x":4.896483792036179,"y":7.827335123259218},{"x":4.7137015414595,"y":8.001620162402105},{"x":4.5247200865883315,"y":8.169163099316279},{"x":4.32978796557029,"y":8.329743590629505},{"x":4.129161542544921,"y":8.483150449599407},{"x":3.9231046704890105,"y":8.629181923855981},{"x":3.7118883442109336,"y":8.767645960734058},{"x":3.4957903439532174,"y":8.898360459851801},{"x":3.2750948700708022,"y":9.02115351259829},{"x":3.050092169266236,"y":9.13586362821843},{"x":2.821078152873042,"y":9.24233994619783},{"x":2.5883540076890768,"y":9.340442434664737},{"x":2.3522257998724854,"y":9.430042074553967},{"x":2.113004072419244,"y":9.51102102928462},{"x":1.8710034367546768,"y":9.583272799733095},{"x":1.6265421589732796,"y":9.646702364294242},{"x":1.379941741272205,"y":9.701226303849353},{"x":1.1315264991292224,"y":9.746772911474068},{"x":0.8816231347811936,"y":9.783282286743201},{"x":0.6305603075621775,"y":9.810706414509127},{"x":0.3786682016685745,"y":9.829009228048335},{"x":0.12627809191928918,"y":9.838166656494195},{"x":-0.1262780919190618,"y":9.838166656494195},{"x":-0.37866820166834714,"y":9.829009228048335},{"x":-0.6305603075619501,"y":9.810706414509127},{"x":-0.8816231347810799,"y":9.783282286743201},{"x":-1.131526499128995,"y":9.746772911474068},{"x":-1.379941741271864,"y":9.701226303849353},{"x":-1.6265421589728248,"y":9.646702364294242},{"x":-1.8710034367545632,"y":9.583272799733095},{"x":-2.1130040724190167,"y":9.51102102928462},{"x":-2.3522257998723717,"y":9.430042074553967},{"x":-2.5883540076888494,"y":9.340442434664737},{"x":-2.821078152872701,"y":9.24233994619783},{"x":-3.0500921692660086,"y":9.13586362821843},{"x":-3.275094870070575,"y":9.02115351259829},{"x":-3.49579034395299,"y":8.898360459851801},{"x":-3.7118883442107062,"y":8.767645960734058},{"x":-3.923104670488783,"y":8.629181923855981},{"x":-4.12916154254458,"y":8.483150449599407},{"x":-4.329787965570063,"y":8.329743590629505},{"x":-4.524720086588104,"y":8.169163099316279},{"x":-4.713701541459159,"y":8.001620162402105},{"x":-4.896483792035951,"y":7.827335123259218},{"x":-5.0728264530283695,"y":7.646537192106507},{"x":-5.242497608144845,"y":7.459464144565118},{"x":-5.405274115096063,"y":7.266362008948363},{"x":-5.560941899059458,"y":7.067484742698753},{"x":-5.709296234218982,"y":6.863093898397096},{"x":-5.850142013009076,"y":6.653458279782285},{"x":-5.983294002710409,"y":6.43885358823627},{"x":-6.108577089056212,"y":6.2195620601951305},{"x":-6.225826506535441,"y":5.995872095968366},{"x":-6.3348880550806825,"y":5.768077880449368},{"x":-6.4356183028660325,"y":5.536478996220353},{"x":-6.527884774939707,"y":5.301380029557322},{"x":-6.611566127447986,"y":5.063090169854149},{"x":-6.686552307220495,"y":4.821922802994322},{"x":-6.752744696505488,"y":4.578195099202276},{"x":-6.81005624266686,"y":4.332227595918766},{"x":-6.858411572671912,"y":4.084343776246897},{"x":-6.897747092216036,"y":3.8348696435252805},{"x":-6.928011069360309,"y":3.584133292585989},{"x":-6.949163702565102,"y":3.3324644782616133},{"x":-6.9611771730361625,"y":3.080194181709885},{"x":-6.9640356813096105,"y":2.8276541751259856},{"x":-6.957735468030364,"y":2.5751765854123505},{"x":-6.942284818896724,"y":2.3230934573844024},{"x":-6.917704053763714,"y":2.0717363170831504},{"x":-6.884025499918607,"y":1.821435735769569},{"x":-6.841293449566365,"y":1.5725208951760123},{"x":-6.789564101579458,"y":1.3253191545838945},{"x":-6.728905487587099,"y":1.0801556202981146},{"x":-6.659397382504267,"y":0.8373527180856399},{"x":-6.5811311996163795,"y":0.5972297691383801},{"x":-6.494209870356826,"y":0.36010257011901103},{"x":-6.398747708937776,"y":0.12628297784294773},{"x":-6.294870262010022,"y":-0.10392150085976937},{"x":-6.182714143550584,"y":-0.3302081135593653},{"x":-6.062426855196122,"y":-0.552279260391515},{"x":-5.934166592256133,"y":-0.7698428854429267},{"x":-5.798102035663305,"y":-0.9826128608488034},{"x":-5.6544121301336645,"y":-1.190309363091501},{"x":-5.503285848828227,"y":-1.3926592410102785},{"x":-5.344921944824932,"y":-1.5893963750338571},{"x":-5.179528689730773,"y":-1.7802620271675096},{"x":-5.0073235997734855,"y":-1.965005181270044},{"x":-4.8285331497356765,"y":-2.1433828731775293},{"x":-4.643392475108499,"y":-2.3151605102366375},{"x":-4.452145062852878,"y":-2.4801121798266195},{"x":-4.2550424311803,"y":-2.6380209464696236},{"x":-4.052343798768334,"y":-2.788679137130657},{"x":-3.8443157438508706,"y":-2.9318886143388454},{"x":-3.631231853629174,"y":-3.0674610367666446},{"x":-3.4133723644641805,"y":-3.1952181069262906},{"x":-3.1910237933252574,"y":-3.3149918056565184},{"x":-2.9644785609791597,"y":-3.4266246130932814},{"x":-2.7340346074126956,"y":-3.529969715829907},{"x":-2.4999950000000126,"y":-3.6248911999998654}]} />
<silkscreencircle pcbX="2.70002mm" pcbY="0.1751012mm" radius="0.510032mm" />
<silkscreencircle pcbX="2.70002mm" pcbY="5.5751412mm" radius="0.761492mm" />
<silkscreencircle pcbX="0mm" pcbY="2.8751212mm" radius="1.999996mm" />
<silkscreentext text="{NAME}" pcbX="-0.0079248mm" pcbY="10.836296mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-7.25562479999985,"y":10.086296000000175},{"x":7.239775200000054,"y":10.086296000000175},{"x":7.239775200000054,"y":-5.729903999999806},{"x":-7.25562479999985,"y":-5.729903999999806},{"x":-7.25562479999985,"y":10.086296000000175}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C231765.obj?uuid=002e529301504fe7be535a6b7f05f2df",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C231765.step?uuid=002e529301504fe7be535a6b7f05f2df",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: -2.822994700000163, z: -0.9000044000000003 },
      }}
      {...props}
    />
  )
}