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/KeyCircuit.tsx
import { TS_1187A_B_A_B } from "../imports/TS_1187A_B_A_B"
export const KeyCircuit = () => (
<group pcbX={0} pcbY={5}>
<resistor
name="R2"
resistance="1k"
footprint="0402"
connections={{
pin1: "net.QSPI_SS_N",
}}
/>
<TS_1187A_B_A_B
name="SW1"
connections={{
pin1: "R2.2",
pin2: "net.GND",
}}
/>
<TS_1187A_B_A_B
name="SW2"
connections={{
pin1: "net.RUN",
pin2: "net.GND",
}}
/>
</group>
)