seveibar/spi-display-webcam-interceptor
This collection of code defines various hardware components, including an crystal oscillator, microcontroller, voltage regulators, inductors, connectors, and logic gates, each represented with physical footprint, pin configurations, and 3D CAD models for PCB design and integration.
- Version
- 1.0.12
- License
- unset
- Stars
- 0
imports/SKRPACE010.tsx
import type { PushButtonProps } from "@tscircuit/props";
const pinLabels = {
// The vendor numbers 1-2 are one contact bank and 3-4 are the other.
// Map logical pins 1-2 across the switch so the built-in schematic symbol
// and PCB footprint describe the same normally-open electrical function.
// The other two pads remain as soldered mechanical/contact duplicates.
pin1: ["pin1", "terminal_a", "vendor_pad_1"],
pin2: ["pin2", "terminal_b", "vendor_pad_3"],
} as const;
export const SKRPACE010 = (props: PushButtonProps<typeof pinLabels>) => {
const { name = "SW1", ...restProps } = props;
return (
<pushbutton
name={name}
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C139797"],
}}
manufacturerPartNumber="SKRPACE010"
footprint={
<footprint>
<smtpad
portHints={["pin2", "vendor_pad_3"]}
pcbX="-2.100072mm"
pcbY="1.074928mm"
width="1.0500106mm"
height="0.6999986mm"
shape="rect"
/>
<smtpad
pcbX="2.100072mm"
pcbY="1.074928mm"
width="1.0500106mm"
height="0.6999986mm"
shape="rect"
/>
<smtpad
portHints={["pin1", "vendor_pad_1"]}
pcbX="-2.100072mm"
pcbY="-1.074928mm"
width="1.0500106mm"
height="0.6999986mm"
shape="rect"
/>
<smtpad
pcbX="2.100072mm"
pcbY="-1.074928mm"
width="1.0500106mm"
height="0.6999986mm"
shape="rect"
/>
<silkscreenpath
route={[
{ x: -0.5080000000000382, y: 1.0160000000000764 },
{ x: 0.5079999999999245, y: 1.0160000000000764 },
]}
/>
<silkscreenpath
route={[
{ x: -0.5080000000000382, y: -1.0159999999999627 },
{ x: 0.5079999999999245, y: -1.0159999999999627 },
]}
/>
<silkscreenpath
route={[
{ x: 2.199893999999972, y: 0.5438140000001113 },
{ x: 2.199893999999972, y: -0.5438139999999976 },
]}
/>
<silkscreenpath
route={[
{ x: 1.3664184000000432, y: 1.5238729999999805 },
{ x: -1.366418400000157, y: 1.5238729999999805 },
]}
/>
<silkscreenpath
route={[
{ x: -2.1998940000000857, y: 0.5438140000001113 },
{ x: -2.1998940000000857, y: -0.5438139999999976 },
]}
/>
<silkscreenpath
route={[
{ x: -1.3810995999999705, y: -1.5499079999999594 },
{ x: 1.3810995999998568, y: -1.5499079999999594 },
]}
/>
<silkscreenpath
route={[
{ x: 0.5079999999999245, y: 1.0160000000000764 },
{ x: 0.26485528508385414, y: 0.9864768865048745 },
{ x: 0.035841257203401256, y: 0.8996233220636896 },
{ x: -0.16573262077258732, y: 0.7604869201419433 },
{ x: -0.32815160774794094, y: 0.5771537826788062 },
{ x: -0.4419765025684228, y: 0.36027856523526225 },
{ x: -0.5005922160837599, y: 0.1224652671394324 },
{ x: -0.5005922160837599, y: -0.1224652671394324 },
{ x: -0.4419765025684228, y: -0.36027856523514856 },
{ x: -0.32815160774794094, y: -0.5771537826788062 },
{ x: -0.16573262077258732, y: -0.7604869201418296 },
{ x: 0.035841257203401256, y: -0.8996233220635759 },
{ x: 0.26485528508385414, y: -0.9864768865047608 },
{ x: 0.5079999999999245, y: -1.0159999999999627 },
]}
/>
<silkscreenpath
route={[
{ x: -0.5080000000000382, y: -1.0159999999999627 },
{ x: -0.26485528508374045, y: -0.9864768865047608 },
{ x: -0.03584125720362863, y: -0.8996233220635759 },
{ x: 0.165732620772701, y: -0.7604869201418296 },
{ x: 0.32815160774794094, y: -0.5771537826788062 },
{ x: 0.4419765025683091, y: -0.36027856523514856 },
{ x: 0.5005922160835325, y: -0.1224652671394324 },
{ x: 0.5005922160835325, y: 0.1224652671394324 },
{ x: 0.4419765025683091, y: 0.36027856523526225 },
{ x: 0.32815160774794094, y: 0.5771537826788062 },
{ x: 0.165732620772701, y: 0.7604869201419433 },
{ x: -0.03584125720362863, y: 0.8996233220636896 },
{ x: -0.26485528508374045, y: 0.9864768865048745 },
{ x: -0.5080000000000382, y: 1.0160000000000764 },
]}
/>
<courtyardoutline
outline={[
{ x: -2.8662000000001626, y: 1.8756000000000768 },
{ x: 2.891599999999812, y: 1.8756000000000768 },
{ x: 2.891599999999812, y: -1.8501999999998588 },
{ x: -2.8662000000001626, y: -1.8501999999998588 },
{ x: -2.8662000000001626, y: 1.8756000000000768 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C139797.obj?uuid=00d848a7e8384bbd9286566957e8bb9c",
stepUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C139797.step?uuid=00d848a7e8384bbd9286566957e8bb9c",
pcbRotationOffset: 0,
modelOriginPosition: {
x: 0.000012700000070253736,
y: 0.00012700000002041634,
z: -0.01,
},
}}
{...restProps}
/>
);
};