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_1_K.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
} as const;
export const RES_1_K = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C57435"],
}}
schHeight={1}
schWidth={0.4}
schPinArrangement={{
topSide: ["pin2"],
bottomSide: ["pin1"],
}}
manufacturerPartNumber="MFR0W4F1001A50"
footprint={
<footprint>
<platedhole
portHints={["pin1"]}
pcbX="-5.249925999999988mm"
pcbY="0mm"
outerDiameter="1.8796mm"
holeDiameter="0.9999979999999999mm"
shape="circle"
/>
<platedhole
portHints={["pin2"]}
pcbX="5.249925999999988mm"
pcbY="0mm"
outerDiameter="1.8796mm"
holeDiameter="0.9999979999999999mm"
shape="circle"
/>
<silkscreenpath
route={[
{ x: 3.2500062000000014, y: -1.2500101999999913 },
{ x: 3.2500062000000014, y: 1.2500102000000055 },
]}
/>
<silkscreenpath
route={[
{ x: -3.2500062000000014, y: 1.2500102000000055 },
{ x: 3.2500062000000014, y: 1.2500102000000055 },
]}
/>
<silkscreenpath
route={[
{ x: 3.2500062000000014, y: -1.2500101999999913 },
{ x: -3.2500062000000014, y: -1.2500101999999913 },
]}
/>
<silkscreenpath
route={[
{ x: -3.2500062000000014, y: -1.2500101999999913 },
{ x: -3.2500062000000014, y: 1.2500102000000055 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=c3a0df6c87714d7e87b93f907edf8c82&pn=C57435",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: {
x: 0.005003800000011438,
y: 0,
z: -0.13980000000000525,
},
}}
{...props}
/>
);
};