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/ATTINY85.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["GND"],
pin5: ["pin5"],
pin6: ["pin6"],
pin7: ["pin7"],
pin8: ["VCC"],
} as const;
export const ATTINY85 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C965497"],
}}
manufacturerPartNumber="ATTINY85_20PU"
footprint={
<footprint>
<platedhole
portHints={["pin1"]}
pcbX="-3.8100000000000023mm"
pcbY="-3.949953999999991mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin8"]}
pcbX="-3.8100000000000023mm"
pcbY="3.9499540000000053mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin2"]}
pcbX="-1.269999999999996mm"
pcbY="-3.949953999999991mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin7"]}
pcbX="-1.269999999999996mm"
pcbY="3.9499540000000053mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin3"]}
pcbX="1.269999999999996mm"
pcbY="-3.949953999999991mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin6"]}
pcbX="1.269999999999996mm"
pcbY="3.9499540000000053mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin4"]}
pcbX="3.8100000000000023mm"
pcbY="-3.949953999999991mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<platedhole
portHints={["pin5"]}
pcbX="3.8100000000000023mm"
pcbY="3.9499540000000053mm"
holeWidth="0.9000235999999999mm"
holeHeight="1.3760195999999998mm"
outerWidth="1.524mm"
outerHeight="1.9999959999999999mm"
shape="pill"
/>
<silkscreenpath
route={[
{ x: -4.726178000000004, y: -0.7999984000000069 },
{ x: -4.726178000000004, y: -2.721406799999997 },
{ x: 4.726203400000003, y: -2.721406799999997 },
{ x: 4.726203400000003, y: 2.7213813999999985 },
{ x: -4.726178000000004, y: 2.7213813999999985 },
{ x: -4.726178000000004, y: 0.7999984000000069 },
]}
/>
<silkscreenpath
route={[
{ x: -4.726190699999989, y: -0.7999984000000069 },
{ x: -4.726190699999989, y: 0.7999984000000069 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=49fc690c136d4479a04219fd9c039749&pn=C965497",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: { x: 0, y: 0, z: 0 },
}}
{...props}
/>
);
};