seveibar/rp2040-zero
This code defines a hardware schematic with discrete components and modules including voltage regulators, microcontroller (RP2040), flash memory, LEDs, crystal oscillator, and buttons, interconnected through specific pins and footprints for PCB layout.
Usage: To use the RP2040 component from the "@tsci/seveibar.rp2040-zero" package: 1. Import the component: ```tsx import { RP2040 } from "@tsci/seveibar.rp2040-zero/imports/RP2040" ``` 2. Use in a circuit: ```tsx <RP2040 name="U3" connections={{ // Connect pins to nets or other components GPIO0: "net.GPIO0", IOVDD1: "net.V3_3", GND: "net.GND" }} /> ``` Key details: - Supports 57 pins - Pins include GPIO, power, USB, crystal, and debug interfaces - Can be configured with various connections and pin mappings
- Version
- 0.0.18-pr6-2229c6f4
- License
- unset
- Stars
- 1
lib/CrystalCircuit.tsx
import { ABM8_272_T3 } from "../imports/ABM8_272_T3"
export const CrystalCircuit = () => (
<group pcbX={5} pcbY={0}>
<resistor
name="R8"
resistance="1k"
footprint="0402"
schOrientation="vertical"
connections={{
pin1: "net.XOUT",
}}
/>
<capacitor
schOrientation="vertical"
name="C17"
capacitance="15pF"
footprint="0402"
connections={{
pin2: "net.GND",
}}
/>
<capacitor
schOrientation="vertical"
name="C16"
capacitance="15pF"
footprint="0402"
connections={{
pin2: "net.GND",
}}
/>
<ABM8_272_T3
name="X1"
connections={{
XTAL1: ["C16.1", "net.XIN"],
GND1: "net.GND",
GND2: "net.GND",
XTAL2: ["C17.1", "R8.2"],
}}
/>
</group>
)