dopamide-org/a1

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-org.a1" package in a project: 1. Import the component: ```tsx import Circuit from "@tsci/dopamide-org.a1" ``` 2. Use the component in a React-based circuit design: ```tsx export default () => ( <Circuit /> ) ``` The package provides a pre-defined circuit layout with a 1k resistor (R1) and a 1000pF capacitor (C1), connected by a trace between their first pins.

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/a1  # download the package files into ./a1
tsci add dopamide-org/a1    # add it to your project as @tsci/dopamide-org.a1

In 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.

dist/index.js

PCBPCB preview for dist/index.js
SchematicSchematic preview for dist/index.js
import { jsxs, jsx } from 'react/jsx-runtime';

var index = () => (jsxs("board", { width: "10mm", height: "10mm", children: [jsx("resistor", { resistance: "1k", footprint: "0402", name: "R1" }), jsx("capacitor", { capacitance: "1000pF", footprint: "0402", name: "C1" }), jsx("trace", { from: ".R1 > .pin1", to: ".C1 > .pin1" })] }));

export { index as default };