pxlpal/test
This code defines a small 10mm x 10mm electronic PCB with a 1kΩ resistor, a 1000pF capacitor, and a trace connecting their first pins.
Usage: To import and use this package: 1. Import the component from the package: ```tsx import { ResistorComponent } from "@tsci/pxlpal.test" ``` 2. Use the component in a tscircuit board: ```tsx <board width="10mm" height="10mm"> <ResistorComponent resistance="1k" footprint="0402" name="R1" /> </board> ``` Key points: - Use standard tscircuit board component props - Specify required properties like resistance and footprint - Add a unique name for referencing
- Version
- 0.0.1
- License
- unset
- Stars
- 0
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>
)