rushabhcodes/tt
This code models a 10mm by 10mm PCB with a 1kΩ resistor and a 1000pF capacitor connected via a trace.
Usage: To import and use the package "@tsci/rushabhcodes.tt" in a project: 1. Import the package: ```tsx import CircuitDesign from "@tsci/rushabhcodes.tt" ``` 2. Use the component in a React component or directly: ```tsx function App() { return <CircuitDesign /> } ``` The example demonstrates a basic circuit with a 1k resistor and a 1000pF capacitor connected by a trace.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
index.tsx
PCB
Schematic
export default () => (
<board width="10mm" height="10mm">
<resistor
resistance="1k"
footprint="0402"
name="R1"
/>
<capacitor
capacitance="1000pF"
footprint="0402"
name="C1"
/>
<trace from=".R1 > .pin1" to=".C1 > .pin1" />
<pinheader
footprint="pinrow3_smd_rightangle_p2.54mm"
pinCount={3}
name="JP1"
schPinArrangement={{
rightSide: {
direction: "bottom-to-top",
pins: [1, 2, 3],
},
}}
pcbRotation={180}
/>
</board>
)