AnasSarkiz/ble-pedometer
This code defines and configures various electronic hardware components such as surface-mount resistors, crystals, diodes, transistors, connectors, and switches with their physical footprints, schematic symbols, and 3D CAD models for PCB assembly.
- Version
- 1.0.7
- License
- unset
- Stars
- 0
imports/A_1TS026A_1600_0553_CT.tsx
import type { PushButtonProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"],
} as const;
export const A_1TS026A_1600_0553_CT = (
props: PushButtonProps<typeof pinLabels>,
) => {
const { name = "SW1", ...restProps } = props;
return (
<pushbutton
name={name}
pinLabels={pinLabels}
internallyConnectedPins={[
["pin1", "pin2"],
["pin3", "pin4"],
]}
supplierPartNumbers={{
jlcpcb: ["C913784"],
}}
manufacturerPartNumber="1TS026A-1600-0553-CT"
footprint={
<footprint>
<smtpad
portHints={["pin1"]}
pcbX="-1.324991mm"
pcbY="0.375031mm"
width="0.5500116mm"
height="0.5500116mm"
shape="rect"
/>
<smtpad
portHints={["pin3"]}
pcbX="1.324991mm"
pcbY="0.375031mm"
width="0.5500116mm"
height="0.5500116mm"
shape="rect"
/>
<smtpad
portHints={["pin2"]}
pcbX="-1.324991mm"
pcbY="-0.375031mm"
width="0.5500116mm"
height="0.5500116mm"
shape="rect"
/>
<smtpad
portHints={["pin4"]}
pcbX="1.324991mm"
pcbY="-0.375031mm"
width="0.5500116mm"
height="0.5500116mm"
shape="rect"
/>
<silkscreenpath
route={[
{ x: -0.874928399999817, y: 0.8000491999999895 },
{ x: 0.8749538000001849, y: 0.8000491999999895 },
]}
/>
<silkscreenpath
route={[
{ x: -0.874928399999817, y: -0.7999475999999959 },
{ x: 0.8749538000001849, y: -0.7999475999999959 },
]}
/>
<silkscreenpath
route={[
{ x: 0.3811270000001059, y: 0.00012700000002041634 },
{ x: 0.36814473981633, y: -0.09848305618402264 },
{ x: 0.33008267884201814, y: -0.19037300000002233 },
{ x: 0.26953468363228694, y: -0.2692806836321324 },
{ x: 0.19062700000017685, y: -0.32982867884174993 },
{ x: 0.09873705618417716, y: -0.3678907398161755 },
{ x: 0.00012700000013410317, y: -0.3808729999999514 },
{ x: -0.09848305618390896, y: -0.3678907398161755 },
{ x: -0.19037299999979496, y: -0.32982867884174993 },
{ x: -0.26928068363190505, y: -0.2692806836321324 },
{ x: -0.32982867884174993, y: -0.19037300000002233 },
{ x: -0.3678907398159481, y: -0.09848305618402264 },
{ x: -0.3808729999998377, y: 0.00012700000002041634 },
{ x: -0.3678907398159481, y: 0.09873705618406348 },
{ x: -0.32982867884174993, y: 0.19062699999994948 },
{ x: -0.26928068363190505, y: 0.26953468363205957 },
{ x: -0.19037299999979496, y: 0.33008267884190445 },
{ x: -0.09848305618390896, y: 0.36814473981610263 },
{ x: 0.00012700000013410317, y: 0.3811270000001059 },
{ x: 0.09873705618417716, y: 0.36814473981610263 },
{ x: 0.19062700000017685, y: 0.33008267884190445 },
{ x: 0.26953468363228694, y: 0.26953468363205957 },
{ x: 0.33008267884201814, y: 0.19062699999994948 },
{ x: 0.36814473981633, y: 0.09873705618406348 },
{ x: 0.3811270000001059, y: 0.00012700000002041634 },
]}
/>
<courtyardoutline
outline={[
{ x: -1.8460089999998672, y: 1.0822310000002062 },
{ x: 1.8543910000001915, y: 1.0822310000002062 },
{ x: 1.8543910000001915, y: -1.0433689999999842 },
{ x: -1.8460089999998672, y: -1.0433689999999842 },
{ x: -1.8460089999998672, y: 1.0822310000002062 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C913784.obj?uuid=df61dab2ec6b48a78c606e3739a9ccb7",
stepUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C913784.step?uuid=df61dab2ec6b48a78c606e3739a9ccb7",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0, z: -0.05 },
}}
{...restProps}
/>
);
};