dopamide/test
This code defines a 10mm x 10mm PCB with a 1kΩ resistor and a 1000pF capacitor connected in series.
Usage: To use the "@tsci/dopamide.test" package in a project: 1. Import the component: ```tsx import Circuit from "@tsci/dopamide.test" ``` 2. Use the component in your React application: ```tsx function App() { return <Circuit /> } ``` The example demonstrates a basic circuit with a resistor and capacitor connected by a trace, which can be directly rendered in a tscircuit-compatible environment.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone dopamide/test # download the package files into ./test
tsci add dopamide/test # add it to your project as @tsci/dopamide.testIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
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" />
</board>
)