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/TS_1187A_B_A_B.tsx

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

const pinLabels = {
  pin1: ["A"],
  pin2: ["B"],
  pin3: ["C"],
  pin4: ["D"],
} as const

export const TS_1187A_B_A_B = (props: ChipProps<typeof pinLabels>) => {
  return (
    <pushbutton
      pinLabels={pinLabels}
      supplierPartNumbers={{
        jlcpcb: ["C318884"],
      }}
      internallyConnectedPins={[
        ["A", "B"],
        ["C", "D"],
      ]}
      manufacturerPartNumber="TS_1187A_B_A_B"
      footprint={
        <footprint>
          <smtpad
            portHints={["pin1"]}
            pcbX="-2.999994000000015mm"
            pcbY="1.8498819999999796mm"
            width="0.9999979999999999mm"
            height="0.7500112mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin2"]}
            pcbX="2.999994000000015mm"
            pcbY="1.8498819999999796mm"
            width="0.9999979999999999mm"
            height="0.7500112mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin3"]}
            pcbX="-2.999994000000015mm"
            pcbY="-1.849881999999866mm"
            width="0.9999979999999999mm"
            height="0.7500112mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin4"]}
            pcbX="2.999994000000015mm"
            pcbY="-1.849881999999866mm"
            width="0.9999979999999999mm"
            height="0.7500112mm"
            shape="rect"
          />
          <silkscreenpath
            route={[
              { x: -1.0007600000001275, y: 1.800860000000057 },
              { x: 0.899159999999938, y: 1.800860000000057 },
              { x: 1.8008599999999433, y: 0.899159999999938 },
              { x: 1.8008599999999433, y: -0.899159999999938 },
              { x: 0.8000999999999294, y: -1.8999199999999519 },
              { x: -0.8991600000000517, y: -1.8999199999999519 },
              { x: -1.800860000000057, y: -0.9982199999999466 },
              { x: -1.800860000000057, y: 1.0007600000000139 },
              { x: -1.0007600000001275, y: 1.800860000000057 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 1.2750800000000027, y: 2.550160000000119 },
              { x: 2.1701506000000563, y: 1.6550893999999516 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 2.5501599999998916, y: 1.1684000000000196 },
              { x: 2.5501599999998916, y: -1.1684000000000196 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 2.1701506000000563, y: -1.6550893999999516 },
              { x: 1.2750800000000027, y: -2.5501600000000053 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -2.5501600000000053, y: 1.1684000000000196 },
              { x: -2.5501600000000053, y: -1.1684000000000196 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -2.17015060000017, y: -1.6550893999999516 },
              { x: -1.2750800000000027, y: -2.5501600000000053 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.2750800000000027, y: 2.550160000000119 },
              { x: -2.17015060000017, y: 1.6550893999999516 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.2750800000000027, y: -2.5501600000000053 },
              { x: 1.2750800000000027, y: -2.5501600000000053 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.2750800000000027, y: 2.550160000000119 },
              { x: 1.2750800000000027, y: 2.550160000000119 },
            ]}
          />
        </footprint>
      }
      cadModel={{
        objUrl:
          "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=91b67c1735f643ffb2e7226c23dd3492&pn=C318884",
        rotationOffset: { x: 0, y: 0, z: 0 },
        positionOffset: { x: 0, y: 0, z: 0 },
      }}
      {...props}
    />
  )
}