rushabhcodes/Attiny85-Arcade-Keychain

This code defines the hardware layout of an ATtiny85-based arcade-style gamepad keychain, featuring a custom PCB with power management, an OLED display, push buttons, an oscillator, a piezo transducer driven via a inverter, mechanical mounting holes, and silkscreen graphics, all modeled with detailed component footprints and electrical traces.

Version
1.0.4
License
unset
Stars
2

imports/CPG135001D03.tsx

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

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

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

  return (
    <pushbutton
      name={name}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C400231"
  ]
}}
      manufacturerPartNumber="CPG135001D03"
      footprint={<footprint>
        <hole pcbX="-0.000127mm" pcbY="-2.5249505mm" diameter="3.5000184mm" />
<hole pcbX="-5.499989mm" pcbY="-2.5249505mm" diameter="1.999996mm" />
<hole pcbX="5.499989mm" pcbY="-2.5249505mm" diameter="1.999996mm" />
<platedhole  portHints={["pin1"]} pcbX="-0.000127mm" pcbY="3.3749615mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<platedhole  portHints={["pin2"]} pcbX="4.999863mm" pcbY="1.2751435mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<silkscreenpath route={[{"x":-7.500137400000085,"y":-10.024960899999769},{"x":7.499883399999931,"y":-10.024960899999769}]} />
<silkscreenpath route={[{"x":7.499883399999931,"y":-10.024960899999769},{"x":7.499883399999931,"y":4.975059900000019}]} />
<silkscreenpath route={[{"x":-7.500137400000085,"y":-10.024960899999769},{"x":-7.500137400000085,"y":4.975059900000019}]} />
<silkscreenpath route={[{"x":-7.500137400000085,"y":4.975059900000019},{"x":7.499883399999931,"y":4.975059900000019}]} />
<silkscreentext text="{NAME}" pcbX="-0.000127mm" pcbY="5.9934495mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-7.768527000000063,"y":5.243449499999997},{"x":7.768272999999908,"y":5.243449499999997},{"x":7.768272999999908,"y":-10.29335049999986},{"x":-7.768527000000063,"y":-10.29335049999986},{"x":-7.768527000000063,"y":5.243449499999997}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C400231.obj?uuid=f59fab8b336a4dedb49f39b3a4d43305",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C400231.step?uuid=f59fab8b336a4dedb49f39b3a4d43305",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.00012700000002041634, y: 2.524975899999845, z: -3.000006 },
      }}
      {...restProps}
    />
  )
}