astra/pd-power-supply

USB-PD Power Supply with RP2040 controller

Version
1.1.6
License
unset
Stars
0

imports/JS102011SAQN.tsx

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

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

export const JS102011SAQN = (props: SwitchProps) => {
  const { name = "SW1", ...restProps } = props

  return (
    <switch spdt
      symbol={<symbol width={2} height={1.2}>
        <port name="pin2" pinNumber={2} schX={-1} schY={0} direction="left" />
        <port name="pin3" pinNumber={3} schX={1} schY={0.4} direction="right" />
        <port name="pin1" pinNumber={1} schX={1} schY={-0.4} direction="right" />
        <schematicpath points={[{x:-1,y:0},{x:-0.4,y:0},{x:0.3,y:0.3}]} />
        <schematicpath points={[{x:0.4,y:0.4},{x:1,y:0.4}]} />
        <schematicpath points={[{x:0.4,y:-0.4},{x:1,y:-0.4}]} />
        <schematictext text={name} schX={0} schY={0.85} fontSize={0.22} />
      </symbol>}
      name={name}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C221660"
  ]
}}
      manufacturerPartNumber="JS102011SAQN"
      footprint={<footprint insertionDirection="from_bottom">
        <hole pcbX="-3.400044mm" pcbY="-1.75002825mm" diameter="0.999998mm" />
<hole pcbX="3.400044mm" pcbY="-1.75002825mm" diameter="0.999998mm" />
<smtpad portHints={["pin1"]} pcbX="-2.499995mm" pcbY="1.00002975mm" width="1.1999976mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="1.00002975mm" width="1.1999976mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="2.499995mm" pcbY="1.00002975mm" width="1.1999976mm" height="2.499995mm" shape="rect" />
<silkscreenpath route={[{"x":-0.20398740000007365,"y":-5.56396524999991},{"x":-0.20398740000007365,"y":-3.5319652499999847}]} />
<silkscreenpath route={[{"x":-1.7279874000000746,"y":-5.56396524999991},{"x":-0.20398740000007365,"y":-5.56396524999991}]} />
<silkscreenpath route={[{"x":-1.7279874000000746,"y":-3.5319652499999847},{"x":-1.7279874000000746,"y":-5.56396524999991}]} />
<silkscreenpath route={[{"x":4.5000164000000495,"y":-3.5500500499999816},{"x":-4.5000164000000495,"y":-3.550024649999955}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":-3.5500500499999816},{"x":-4.5000164000000495,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":4.5000164000000495,"y":0.04999354999995376},{"x":4.5000164000000495,"y":-3.550024649999955}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":0.04996815000004062},{"x":-3.371138799999926,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":-1.7088612000001149,"y":0.04996815000004062},{"x":-0.8311388000000761,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":0.8311387999999624,"y":0.04996815000004062},{"x":1.7088612000000012,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":3.371138799999926,"y":0.04996815000004062},{"x":4.5000164000000495,"y":0.04996815000004062}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="3.23777175mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-0.21600160000002688,"y":-5.527948049999964},{"x":-0.21600160000002688,"y":-3.5719448500000226},{"x":-0.2279903999999533,"y":-3.5599560499999825},{"x":-1.6799813999999742,"y":-3.5599560499999825},{"x":-1.6919956000000411,"y":-3.5719702499999357},{"x":-1.6919956000000411,"y":-5.49195624999993},{"x":-1.667992599999934,"y":-5.5159592499999235},{"x":-0.21600160000002688,"y":-5.527948049999964}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-4.771200000000135,"y":2.487771749999979},{"x":4.771199999999908,"y":2.487771749999979},{"x":4.771199999999908,"y":-5.83542824999995},{"x":-4.771200000000135,"y":-5.83542824999995},{"x":-4.771200000000135,"y":2.487771749999979}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C221660.obj?uuid=d337b619ac8046ecb63111370d25527b",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C221660.step?uuid=d337b619ac8046ecb63111370d25527b",
        pcbRotationOffset: 0,
        modelBounds: {min:{x:-4.5,y:-3.78,z:-1.6},max:{x:4.5,y:3.75,z:2.75}},
        modelOriginPosition: { x: 0, y: 1.7459756499999777, z: -0.8000016000000002 },
      }}
      {...restProps}
    />
  )
}