onopod/a

This code defines a 10mm x 10mm electronic circuit board featuring a 1kΩ resistor and a 1000pF capacitor connected via their respective 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 onopod/a  # download the package files into ./a
tsci add onopod/a    # add it to your project as @tsci/onopod.a

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

import { jsxs, jsx } from 'react/jsx-runtime';

var pcb_placements = [
];
var manual_trace_hints = [
];
var schematic_placements = [
];
var manualEdits = {
	pcb_placements: pcb_placements,
	manual_trace_hints: manual_trace_hints,
	schematic_placements: schematic_placements
};

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

export { index as default };