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

subcircuits/PowerBoost_MT3608/imports/AO3401A.tsx

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

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

type AO3401AProps = ChipProps<typeof pinLabels>

export const AO3401A = (props: AO3401AProps) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbolName="p_channel_e_mosfet_transistor"
      supplierPartNumbers={{
        jlcpcb: ["C347476"],
      }}
      manufacturerPartNumber="AO3401A"
      footprint={
        <footprint>
          <smtpad
            portHints={["pin2", "source"]}
            pcbX="1.149985mm"
            pcbY="0.94996mm"
            width="0.999998mm"
            height="0.7999984mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin3", "drain"]}
            pcbX="-1.149985mm"
            pcbY="0mm"
            width="0.999998mm"
            height="0.7999984mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin1", "gate"]}
            pcbX="1.149985mm"
            pcbY="-0.94996mm"
            width="0.999998mm"
            height="0.7999984mm"
            shape="rect"
          />
          <silkscreenpath
            route={[
              { x: -0.6999731999999881, y: 0.6359398000000027 },
              { x: -0.6999731999999881, y: 1.4999461999999966 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -0.6999731999999881, y: 1.4999461999999966 },
              { x: 0.30005020000000115, y: 1.4999461999999966 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 0.7000239999999991, y: -0.31402020000000164 },
              { x: 0.7000239999999991, y: 0.31391859999999383 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -0.6999731999999881, y: -1.5000478000000044 },
              { x: -0.6999731999999881, y: -0.6360414000000105 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -0.6999731999999881, y: -1.5000478000000044 },
              { x: 0.30005020000000115, y: -1.5000478000000044 },
            ]}
          />
          <silkscreentext
            text="{NAME}"
            pcbX="0.133223mm"
            pcbY="2.49606mm"
            anchorAlignment="center"
            fontSize="1mm"
          />
          <courtyardoutline
            outline={[
              { x: -1.8947769999999906, y: 1.74606 },
              { x: 2.161223000000021, y: 1.74606 },
              { x: 2.161223000000021, y: -1.7511400000000066 },
              { x: -1.8947769999999906, y: -1.7511400000000066 },
              { x: -1.8947769999999906, y: 1.74606 },
            ]}
          />
        </footprint>
      }
      cadModel={{
        objUrl:
          "https://modelcdn.tscircuit.com/easyeda_models/assets/C347476.obj?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
        stepUrl:
          "https://modelcdn.tscircuit.com/easyeda_models/assets/C347476.step?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
        pcbRotationOffset: 180,
        modelOriginPosition: {
          x: 0.00003809999999759839,
          y: -0.00003810000001180924,
          z: 0.050795,
        },
      }}
      {...props}
    />
  )
}