dopamide-org/dam2
This code defines a 10mm x 10mm circuit board with a 1kΩ resistor and a 1000pF capacitor connected in series.
Usage: To import and use the "@tsci/dopamide-org.dam2" package in a project: 1. Import the package: ```tsx import Circuit from "@tsci/dopamide-org.dam2" ``` 2. Use in a React component or directly in a rendering context: ```tsx export default () => <Circuit /> ``` The package provides a simple circuit with a 1k resistor and 1000pF capacitor connected by a trace.
- 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-org/dam2 # download the package files into ./dam2
tsci add dopamide-org/dam2 # add it to your project as @tsci/dopamide-org.dam2In 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"e
footprint="0402"
name="R1"m
/>
<capacitor
capacitance="1000pF"
footprint="0402"
name="C1"
/>
<trace from=".R1 > .pin1" to=".C1 > .pin1" />
</board>
)