rushabhcodes/tetris
This code defines various electronic component models—including a AAA battery holder, ATtiny85 microcontroller, switch, buzzer, display, and resistors—as hardware modules with detailed footprints, pin configurations, CAD models, and physical specifications for use in circuit design.
- Version
- 1.0.2
- License
- MIT
- Stars
- 2
imports/RES_2_2_K.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
} as const;
export const RES_2_2_K = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C58579"],
}}
schHeight={1}
schWidth={0.4}
schPinArrangement={{
topSide: ["pin2"],
bottomSide: ["pin1"],
}}
manufacturerPartNumber="MFR0S2F2201A20"
footprint={
<footprint>
<platedhole
portHints={["pin1"]}
pcbX="-6.750050000000002mm"
pcbY="0mm"
outerDiameter="1.8796mm"
holeDiameter="0.9999979999999999mm"
shape="circle"
/>
<platedhole
portHints={["pin2"]}
pcbX="6.750050000000002mm"
pcbY="0mm"
outerDiameter="1.8796mm"
holeDiameter="0.9999979999999999mm"
shape="circle"
/>
<silkscreenpath
route={[
{ x: -4.750003200000009, y: 1.4999970000000218 },
{ x: 4.750003200000009, y: 1.4999970000000218 },
]}
/>
<silkscreenpath
route={[
{ x: 4.750003200000009, y: 1.4999970000000218 },
{ x: 4.750003200000009, y: -1.4999970000000076 },
]}
/>
<silkscreenpath
route={[
{ x: 4.750003200000009, y: -1.4999970000000076 },
{ x: -4.750003200000009, y: -1.4999970000000076 },
]}
/>
<silkscreenpath
route={[
{ x: -4.750003200000009, y: -1.4999970000000076 },
{ x: -4.750003200000009, y: 1.4999970000000218 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=535a605f62e14ee9abc74c7cfd6ea716&pn=C58579",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: { x: 0, y: 0, z: 1.5 },
}}
{...props}
/>
);
};