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

imports/WS2812B_2020.tsx

import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["DO"],
  pin2: ["GND"],
  pin3: ["DI"],
  pin4: ["VDD"],
} as const

export const WS2812B_2020 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
        jlcpcb: ["C965555"],
      }}
      manufacturerPartNumber="WS2812B_2020"
      footprint={
        <footprint>
          <smtpad
            portHints={["pin1"]}
            pcbX="-0.9150349999999889mm"
            pcbY="0.5500369999999748mm"
            width="0.8999982mm"
            height="0.6999986mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin2"]}
            pcbX="-0.9150349999999889mm"
            pcbY="-0.5500369999999748mm"
            width="0.8999982mm"
            height="0.6999986mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin3"]}
            pcbX="0.9150349999999889mm"
            pcbY="-0.5500369999999748mm"
            width="0.8999982mm"
            height="0.6999986mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin4"]}
            pcbX="0.9150349999999889mm"
            pcbY="0.5500369999999748mm"
            width="0.8999982mm"
            height="0.6999986mm"
            shape="rect"
          />
          <silkscreenpath
            route={[
              { x: -0.24998679999998785, y: 0.7499603999999636 },
              { x: -0.09999980000009145, y: 0.7499603999999636 },
              { x: -0.09999980000009145, y: -0.6500114000000394 },
              { x: -0.09999980000009145, y: -0.6999986000000717 },
              { x: -0.24998679999998785, y: -0.6999986000000717 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -0.24998679999998785, y: 0.7499603999999636 },
              { x: -0.24998679999998785, y: -0.7000239999999849 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.299997400000052, y: 1.1499850000000151 },
              { x: -1.299997400000052, y: 1.1381486000000223 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 0.9999979999998914, y: 1.0999977999999828 },
              { x: -0.999998000000005, y: 1.0999977999999828 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -0.999998000000005, y: -1.0999977999999828 },
              { x: 0.9999979999998914, y: -1.0999977999999828 },
            ]}
          />
        </footprint>
      }
      schPinArrangement={{
        leftSide: {
          direction: "top-to-bottom",
          pins: ["DI", "GND"],
        },
        rightSide: {
          direction: "top-to-bottom",
          pins: ["VDD", "DO"],
        },
      }}
      cadModel={{
        objUrl:
          "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=caa88715b11f4aa189b02e52bbb84e4f&pn=C965555",
        rotationOffset: { x: 0, y: 0, z: 0 },
        positionOffset: { x: 0, y: 0, z: 0 },
      }}
      {...props}
    />
  )
}