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/FlashCircuit.tsx
import { W25Q16JVUXIQ } from "../imports/W25Q16JVUXIQ"
export const FlashCircuit = () => (
<group pcbX={0} pcbY={-5}>
<capacitor
name="C3"
capacitance="1uF"
footprint="0603"
schOrientation="vertical"
connections={{
pin2: "net.GND",
}}
/>
<W25Q16JVUXIQ
name="U2"
connections={{
CS_N: "net.QSPI_SS_N",
DO: "net.QSPI_SD1",
WP_N: "net.QSPI_SD2",
GND: "net.GND",
VCC: "C3.1",
HOLD_N: "net.QSPI_SD3",
CLK: "net.QSPI_CLK",
DI: "net.QSPI_SD0",
}}
/>
</group>
)