mohan-bee/RV1106G2

This code defines a detailed hardware schematic with schematic symbols, footprints, and 3D models for various electronic components including microcontrollers, voltage regulators, connectors, and passive parts, designed for PCB layout and routing.

Version
1.0.23
License
unset
Stars
0

imports/HX_3x4x2_5_PA_4N_push_button_switch.tsx

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

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

export const HX_3x4x2_5_PA_4N_push_button_switch = (props: PushButtonProps<typeof pinLabels>) => {
  return (
    <pushbutton
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematicpath points={[{"x":-2.54,"y":2.54},{"x":2.54,"y":2.54}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":2.54,"y":-2.54},{"x":-2.54,"y":-2.54}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":2.54},{"x":0,"y":1.524}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":-2.54},{"x":0,"y":-0.762}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":1.524},{"x":0,"y":0.762}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":1.524,"y":1.016},{"x":0.254,"y":-0.762}]} strokeWidth={0.254} strokeColor="#880000" />
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-5.08} schY={2.54} schStemLength={2.54} />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="left" schX={-5.08} schY={-2.54} schStemLength={2.54} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={5.08} schY={2.54} schStemLength={2.54} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="right" schX={5.08} schY={-2.54} schStemLength={2.54} />
          <schematiccircle center={{ x: 0, y: -0.762 }} radius={0.254} strokeWidth={0.254} color="#880000" />
          <schematiccircle center={{ x: 0, y: 0.762 }} radius={0.254} strokeWidth={0.254} color="#880000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C55200589"
  ]
}}
      manufacturerPartNumber="HX_3x4x2_5_PA_4N_push_button_switch"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-2.149983mm" pcbY="1.075055mm" width="1.1999976mm" height="0.6500114mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.149983mm" pcbY="1.075055mm" width="1.1999976mm" height="0.6500114mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-2.149983mm" pcbY="-1.075055mm" width="1.1999976mm" height="0.6500114mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="2.149983mm" pcbY="-1.075055mm" width="1.1999976mm" height="0.6500114mm" shape="rect" />
<silkscreenpath route={[{"x":-2.0999449999999342,"y":1.7000728000000436},{"x":2.1000466000000415,"y":1.700047399999903}]} />
<silkscreenpath route={[{"x":-2.0999449999999342,"y":-1.6999711999999363},{"x":2.1000466000000415,"y":-1.6999457999999095}]} />
<silkscreenpath route={[{"x":-2.0999449999999342,"y":1.7000728000000436},{"x":-2.0999449999999342,"y":1.6311880000000656}]} />
<silkscreenpath route={[{"x":-2.0999449999999342,"y":0.518921999999975},{"x":-2.0999449999999342,"y":-0.5188203999999814}]} />
<silkscreenpath route={[{"x":-2.0999449999999342,"y":-1.631086400000072},{"x":-2.0999449999999342,"y":-1.6999711999999363}]} />
<silkscreenpath route={[{"x":2.1000466000000415,"y":1.700047399999903},{"x":2.1000466000000415,"y":1.6311880000000656}]} />
<silkscreenpath route={[{"x":2.1000466000000415,"y":0.518921999999975},{"x":2.1000466000000415,"y":-0.5188203999999814}]} />
<silkscreenpath route={[{"x":2.1000466000000415,"y":-1.631086400000072},{"x":2.1000466000000415,"y":-1.6999457999999095}]} />
<silkscreenpath route={[{"x":-0.7619492000000037,"y":0.6350507999999309},{"x":0.7620507999999973,"y":0.6350507999999309}]} />
<silkscreenpath route={[{"x":-0.7619237999999768,"y":-0.6349238000000241},{"x":0.7620762000000241,"y":-0.6349238000000241}]} />
<silkscreenpath route={[{"x":-0.7619237999999768,"y":-0.6349238000000241},{"x":-0.7631430000000137,"y":0.6356349999999793}]} />
<silkscreenpath route={[{"x":0.7620507999999973,"y":0.6350507999999309},{"x":1.0036792573420144,"y":0.5853746715562238},{"x":1.2081207488878363,"y":0.4473322662264536},{"x":1.3444951590004166,"y":0.24177436829700127},{"x":1.392203647774977,"y":-0.00025027762467288994},{"x":1.344040028057293,"y":-0.2421847622900941},{"x":1.2072792328128799,"y":-0.4474857949684292},{"x":1.0025784639619815,"y":-0.5851434295788067},{"x":0.7608569999999872,"y":-0.6343650000000025}]} />
<courtyardoutline outline={[{"x":-3.0095830000000205,"y":1.9854550000000017},{"x":3.0022169999999733,"y":1.9854550000000017},{"x":3.0022169999999733,"y":-1.9435449999999719},{"x":-3.0095830000000205,"y":-1.9435449999999719},{"x":-3.0095830000000205,"y":1.9854550000000017}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C55200589.obj?uuid=859fa7849d62453abedc7c971d7b8777",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C55200589.step?uuid=859fa7849d62453abedc7c971d7b8777",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.00005080000005364127, y: -0.00005079999993995443, z: -1.7 },
      }}
      {...props}
    />
  )
}