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/PinOutCircuit.tsx
export const PinOutCircuit = () => (
<chip
name="P1"
footprint="stampboard_left9_right9_bottom5_top0_p2.54mm_innerhole_h23.8mm_showpinlabels"
schWidth={1}
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: [
"V5",
"GND",
"V3_3",
"GP29",
"GP28",
"GP27",
"GP26",
"GP15",
"GP14",
"GP13",
"GP12",
"GP11",
"GP10",
"GP9",
"GP8",
"GP7",
"GP6",
"GP5",
"GP4",
"GP3",
"GP2",
"GP1",
"GP0",
],
},
}}
pinLabels={{
pin1: "V5",
pin2: "GND",
pin3: "V3_3",
pin4: "GP29",
pin5: "GP28",
pin6: "GP27",
pin7: "GP26",
pin8: "GP15",
pin9: "GP14",
pin10: "GP13",
pin11: "GP12",
pin12: "GP11",
pin13: "GP10",
pin14: "GP9",
pin15: "GP8",
pin16: "GP7",
pin17: "GP6",
pin18: "GP5",
pin19: "GP4",
pin20: "GP3",
pin21: "GP2",
pin22: "GP1",
pin23: "GP0",
}}
connections={{
V5: "net.V5_5",
GND: "net.GND",
V3_3: "net.V3_3",
GP29: "net.GPIO29",
GP28: "net.GPIO28",
GP27: "net.GPIO27",
GP26: "net.GPIO26",
GP15: "net.GPIO15",
GP14: "net.GPIO14",
GP13: "net.GPIO13",
GP12: "net.GPIO12",
GP11: "net.GPIO11",
GP10: "net.GPIO10",
GP9: "net.GPIO9",
GP8: "net.GPIO8",
GP7: "net.GPIO7",
GP6: "net.GPIO6",
GP5: "net.GPIO5",
GP4: "net.GPIO4",
GP3: "net.GPIO3",
GP2: "net.GPIO2",
GP1: "net.GPIO1",
GP0: "net.GPIO0",
}}
/>
)