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.

index.tsx

PCBPCB preview for index.tsx
SchematicSchematic preview for index.tsx
import manualEdits from "./manual-edits.json"

export default () => (
  <board width="10mm" height="10mm"
  manualEdits={manualEdits}>
    <resistor
      resistance="1k"
      footprint="0402"
      name="R1"
    />
    <capacitor
      capacitance="1000pF"
      footprint="0402"
      name="C1"
      connections={{ pin1: "R1.pin1" }}
    />
  </board>
)