imrishabh18/corne-keyboard

The code defines and renders two surface-mount chip components with SMT pads, silkscreen outlines, and 3D CAD models (OBJ and STEP) for PCB assembly.

Version
2.0.21
License
unset
Stars
1

vendor/jlc-exact-imports/C128994.tsx.txt

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

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

export const PJ_399B_6A = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="right" schX={0.5} schY={0.4} schStemLength={0.4} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.5} schY={0.2} schStemLength={0.4} />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="right" schX={0.5} schY={0} schStemLength={0.4} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="right" schX={0.5} schY={-0.6} schStemLength={0.4} />
          <port name="pin5" pinNumber={5} aliases={["5"]} direction="right" schX={0.5} schY={-0.2} schStemLength={0.4} />
          <port name="pin6" pinNumber={6} aliases={["6"]} direction="right" schX={0.5} schY={-0.4} schStemLength={0.4} />
          <schematicpath points={[{"x":0.1,"y":0.4},{"x":-0.64,"y":0.4},{"x":-0.64,"y":0.06},{"x":-0.68,"y":0.14},{"x":-0.68,"y":0.14}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":-0.6},{"x":-0.64,"y":-0.6},{"x":-0.64,"y":-0.26},{"x":-0.68,"y":-0.34},{"x":-0.68,"y":-0.34}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":0.2},{"x":-0.38,"y":0.2},{"x":-0.42,"y":0.1},{"x":-0.46,"y":0.2}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":0},{"x":-0.3,"y":0},{"x":-0.34,"y":-0.06},{"x":-0.38,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":-0.4},{"x":-0.38,"y":-0.4},{"x":-0.42,"y":-0.3},{"x":-0.46,"y":-0.4}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":-0.2},{"x":-0.3,"y":-0.2},{"x":-0.34,"y":-0.14},{"x":-0.38,"y":-0.2}]} strokeColor="#880000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C128994"
  ]
}}
      manufacturerPartNumber="PJ-399B-6A"
      footprint={<footprint>
        <platedhole  portHints={["pin1"]} pcbX="4.89990125mm" pcbY="3.850005mm" holeWidth="1.4999462mm" holeHeight="0.599948mm" outerWidth="2.1999956mm" outerHeight="1.2999974mm" shape="pill" />
<platedhole  portHints={["pin2"]} pcbX="1.70000925mm" pcbY="3.850767mm" holeWidth="1.4999462mm" holeHeight="0.599948mm" outerWidth="2.1999956mm" outerHeight="1.2999974mm" shape="pill" />
<platedhole  portHints={["pin4"]} pcbX="4.80592125mm" pcbY="-3.809873mm" holeWidth="1.4999462mm" holeHeight="0.599948mm" outerWidth="2.1999956mm" outerHeight="1.2999974mm" shape="pill" />
<platedhole  portHints={["pin6"]} pcbX="1.70000925mm" pcbY="-3.850513mm" holeWidth="1.4999462mm" holeHeight="0.599948mm" outerWidth="2.1999956mm" outerHeight="1.2999974mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-4.19990275mm" pcbY="3.799967mm" width="1.499997mm" height="1.400048mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-4.19990275mm" pcbY="-3.799967mm" width="1.499997mm" height="1.400048mm" shape="rect" />
<silkscreenpath route={[{"x":-0.2740787500000579,"y":-3.0478729999999814},{"x":-0.2740787500000579,"y":-4.063872999999944},{"x":-2.052078749999964,"y":-4.063872999999944},{"x":-2.052078749999964,"y":-3.0478729999999814}]} />
<silkscreenpath route={[{"x":7.5999212500000795,"y":3.0001210000000356},{"x":-5.0000027500000215,"y":3.0001210000000356}]} />
<silkscreenpath route={[{"x":7.5999212500000795,"y":-2.9998669999999947},{"x":-5.0000027500000215,"y":-2.9998669999999947}]} />
<silkscreenpath route={[{"x":-5.0000027500000215,"y":3.0001210000000356},{"x":-5.0000027500000215,"y":-2.9998669999999947}]} />
<silkscreenpath route={[{"x":7.600937250000015,"y":3.0001210000000356},{"x":7.600937250000015,"y":-2.9998669999999947}]} />
<silkscreenpath route={[{"x":7.5999212500000795,"y":2.540126999999984},{"x":10.139921250000043,"y":2.540126999999984},{"x":10.139921250000043,"y":-2.539872999999943},{"x":7.5999212500000795,"y":-2.539872999999943}]} />
<silkscreenpath route={[{"x":-2.052078749999964,"y":3.0481270000000222},{"x":-2.052078749999964,"y":4.064127000000099},{"x":-0.2740787500000579,"y":4.064127000000099},{"x":-0.2740787500000579,"y":3.0481270000000222}]} />
<silkscreentext text="{NAME}" pcbX="2.57072125mm" pcbY="5.495927mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":7.549984849999987,"y":2.5001220000001467},{"x":10.049979850000113,"y":2.5001220000001467},{"x":10.049979850000113,"y":-2.499867999999992},{"x":7.549984849999987,"y":-2.499867999999992},{"x":7.549984849999987,"y":2.5001220000001467}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-5.248478750000004,"y":4.745926999999938},{"x":10.389921250000043,"y":4.745926999999938},{"x":10.389921250000043,"y":-4.745673000000011},{"x":-5.248478750000004,"y":-4.745673000000011},{"x":-5.248478750000004,"y":4.745926999999938}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C128994.obj?uuid=71a5c7db7af04df9a08b6756fd906972",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C128994.step?uuid=71a5c7db7af04df9a08b6756fd906972",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -2.4329892499999914, y: -0.00013970000009067007, z: -0.10000480000000023 },
      }}
      {...props}
    />
  )
}