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/DISPLAY.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["GND"],
pin2: ["VCC"],
pin3: ["SCL"],
pin4: ["SDA"],
} as const;
export const DISPLAY = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C5248080"],
}}
schPinArrangement={{
rightSide: ["pin4", "pin3", "pin2", "pin1"],
}}
manufacturerPartNumber="HS96L03W2C03"
footprint={
<footprint>
<hole
pcbX="-11.649976700000025mm"
pcbY="11.194980200000032mm"
diameter="2.032mm"
/>
<hole
pcbX="11.649976700000025mm"
pcbY="11.194980200000032mm"
diameter="2.032mm"
/>
<hole
pcbX="-11.649976700000025mm"
pcbY="-12.60497220000002mm"
diameter="2.032mm"
/>
<hole
pcbX="11.649976700000025mm"
pcbY="-12.60497220000002mm"
diameter="2.032mm"
/>
<platedhole
portHints={["pin1"]}
pcbX="-3.8100127000000157mm"
pcbY="11.754973999999947mm"
outerDiameter="1.7999964mm"
holeDiameter="1.0499852mm"
shape="circle"
/>
<platedhole
portHints={["pin2"]}
pcbX="-1.270012700000052mm"
pcbY="11.754973999999947mm"
outerDiameter="1.7999964mm"
holeDiameter="1.0499852mm"
shape="circle"
/>
<platedhole
portHints={["pin3"]}
pcbX="1.2699872999999116mm"
pcbY="11.754973999999947mm"
outerDiameter="1.7999964mm"
holeDiameter="1.0499852mm"
shape="circle"
/>
<platedhole
portHints={["pin4"]}
pcbX="3.809987299999989mm"
pcbY="11.754973999999947mm"
outerDiameter="1.7999964mm"
holeDiameter="1.0499852mm"
shape="circle"
/>
<silkscreenpath
route={[
{ x: -13.599172700000054, y: 13.194620600000007 },
{ x: 13.599147299999913, y: 13.194620600000007 },
{ x: 13.599147299999913, y: -14.605679399999985 },
{ x: 6.4998472999998285, y: -14.605679399999985 },
{ x: 6.4998472999998285, y: -10.854099399999996 },
{ x: -6.350012700000093, y: -10.854099399999996 },
{ x: -6.350012700000093, y: -14.605679399999985 },
{ x: -13.599172700000054, y: -14.605679399999985 },
{ x: -13.599172700000054, y: 13.194620600000007 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=c6b423183c2f4cf5a163f75f8ad52fae&pn=C5248080",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: {
x: 0,
y: 0,
z: -2.5,
},
}}
{...props}
/>
);
};