hrithik18k/air-mouse

This code defines various surface-mount and through-hole electronic components, specifying their physical footprints, pin configurations, and 3D CAD models for hardware visualization.

Version
1.0.3
License
unset
Stars
0

imports/HX_3x4x2_2P_1_6N_TACTILE_SWITCH.tsx

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

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

export const HX_3x4x2_2P_1_6N_TACTILE_SWITCH = (
  props: PushButtonProps<typeof pinLabels>,
) => {
  const { name = "SW1", ...restProps } = props

  return (
    <pushbutton
      name={name}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C49234124"
  ]
}}
      manufacturerPartNumber="HX_3x4x2_2P_1_6N_TACTILE_SWITCH"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-2.159mm" pcbY="0mm" width="1.2999974mm" height="1.6999966mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.159mm" pcbY="0mm" width="1.2999974mm" height="1.6999966mm" shape="rect" />
<silkscreenpath route={[{"x":-2.032000000000039,"y":1.081150999999977},{"x":-2.032000000000039,"y":1.524000000000001}]} />
<silkscreenpath route={[{"x":2.0319999999999254,"y":-1.081150999999977},{"x":2.0319999999999254,"y":-1.524000000000001},{"x":-2.032000000000039,"y":-1.524000000000001},{"x":-2.032000000000039,"y":-1.081150999999977}]} />
<silkscreenpath route={[{"x":-2.032000000000039,"y":1.524000000000001},{"x":2.0319999999999254,"y":1.524000000000001},{"x":2.0319999999999254,"y":1.081150999999977}]} />
<silkscreenpath route={[{"x":0.6192519999999604,"y":-0.0017779999999447682},{"x":0.5979610932984087,"y":-0.1634984921419118},{"x":0.5355393133006601,"y":-0.31419800000003306},{"x":0.4362406011565554,"y":-0.44360660115671635},{"x":0.3068319999999858,"y":-0.5429053133005937},{"x":0.15613249214175084,"y":-0.605327093298456},{"x":-0.005587999999988824,"y":-0.6266180000000077},{"x":-0.16730849214195587,"y":-0.605327093298456},{"x":-0.3180080000000771,"y":-0.5429053133005937},{"x":-0.4474166011566467,"y":-0.44360660115671635},{"x":-0.5467153133006377,"y":-0.31419800000003306},{"x":-0.6091370932983864,"y":-0.1634984921419118},{"x":-0.630427999999938,"y":-0.0017779999999447682},{"x":-0.6091370932983864,"y":0.1599424921417949},{"x":-0.5467153133006377,"y":0.31064199999991615},{"x":-0.4474166011566467,"y":0.44005060115648575},{"x":-0.3180080000000771,"y":0.5393493133007041},{"x":-0.16730849214195587,"y":0.6017710932984528},{"x":-0.005587999999988824,"y":0.6230620000000044},{"x":0.15613249214175084,"y":0.6017710932984528},{"x":0.3068319999999858,"y":0.5393493133007041},{"x":0.4362406011565554,"y":0.44005060115648575},{"x":0.5355393133006601,"y":0.31064199999991615},{"x":0.5979610932984087,"y":0.1599424921417949},{"x":0.6192519999999604,"y":-0.0017779999999447682}]} />
<silkscreentext text="{NAME}" pcbX="-0.0127mm" pcbY="2.524mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.0693999999999733,"y":1.774000000000001},{"x":3.043999999999869,"y":1.774000000000001},{"x":3.043999999999869,"y":-1.774000000000001},{"x":-3.0693999999999733,"y":-1.774000000000001},{"x":-3.0693999999999733,"y":1.774000000000001}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C49234124.obj?uuid=167cb812923f4f7cbb49e982a3bb3b9d",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C49234124.step?uuid=167cb812923f4f7cbb49e982a3bb3b9d",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 0.000012699999956566899, z: -0.01 },
      }}
      {...restProps}
    />
  )
}