gokul/macro-six-usbc
USB-powered ATmega32U4 controller board with protected/switched 5 V power, six tactile keys, rotary encoder, reset/boot/ISP interfaces, power LED, and six daisy-chained SK6812 RGB LEDs driven through MOSFETs.
- Version
- 0.1.6
- License
- MIT
- Stars
- 0
imports/CPG151101D06.tsx
import type { PushButtonProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"]
} as const
export const CPG151101D06 = (props: PushButtonProps<typeof pinLabels>) => {
return (
<pushbutton
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C49234237"
]
}}
manufacturerPartNumber="CPG151101D06"
// Model linked by the exact C49234237 supplier library entry.
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C49234237.obj?uuid=1a0be588a99a43879c4accba4eefcce2",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C49234237.step?uuid=1a0be588a99a43879c4accba4eefcce2",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0.000127, z: -6.000006 },
// Register the retained footprint's pad-bounds center to its switch center.
positionOffset: { x: -0.000127, y: -2.0898739, z: 0 },
}}
footprint={<footprint>
<hole pcbX="5.080127mm" pcbY="-0.000127mm" diameter="1.7018mm" />
<hole pcbX="-5.079873mm" pcbY="-0.000127mm" diameter="1.7018mm" />
<hole pcbX="0.000127mm" pcbY="-0.000127mm" diameter="3.999992mm" />
<platedhole portHints={["pin2"]} pcbX="2.540127mm" pcbY="5.079873mm" outerDiameter="2.1999956mm" holeDiameter="1.5000224mm" shape="circle" />
<platedhole portHints={["pin1"]} pcbX="-3.809873mm" pcbY="2.539873mm" outerDiameter="2.1999956mm" holeDiameter="1.5000224mm" shape="circle" />
<silkscreenrect pcbX="0mm" pcbY="0mm" width="15.599918mm" height="15.599918mm" strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-8.064868800000113,"y":8.034871400000043},{"x":8.035100000000057,"y":8.034871400000043},{"x":8.035100000000057,"y":-8.0650973999999},{"x":-8.064868800000113,"y":-8.0650973999999},{"x":-8.064868800000113,"y":8.034871400000043}]} />
</footprint>}
{...props}
/>
)
}