techmannih/trellis-core
This code defines a detailed electronic hardware schematic and PCB layout for a Linux System-on-Module, incorporating components such as oscillators, power regulators, USB-C connectors, connectors, LEDs, resistors, capacitors, inductors, and integrated circuits, with precise physical footprint and 3D models.
- Version
- 0.2.13
- License
- unset
- Stars
- 0
imports/TSA010A2026B.tsx
import type { PushButtonProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"]
} as const
export const TSA010A2026B = (props: PushButtonProps<typeof pinLabels>) => {
const { name = "SW1", ...restProps } = props
return (
<pushbutton
name={name}
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C2888420"
]
}}
manufacturerPartNumber="TSA010A2026B"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-2.200148mm" pcbY="0mm" width="1.35001mm" height="1.999996mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.200148mm" pcbY="0mm" width="1.35001mm" height="1.999996mm" shape="rect" />
<silkscreenpath route={[{"x":-1.99999600000001,"y":1.131138200000123},{"x":-1.99999600000001,"y":1.4999969999998939}]} />
<silkscreenpath route={[{"x":1.9999959999998964,"y":-1.1311382000000094},{"x":1.9999959999998964,"y":-1.4999970000000076},{"x":-1.99999600000001,"y":-1.4999970000000076},{"x":-1.99999600000001,"y":-1.1311382000000094}]} />
<silkscreenpath route={[{"x":-1.99999600000001,"y":1.4999969999998939},{"x":1.9999959999998964,"y":1.4999969999998939},{"x":1.9999959999998964,"y":1.131138200000123}]} />
<silkscreenpath route={[{"x":0.7619999999999436,"y":0},{"x":0.7360354796322781,"y":-0.19722011236808612},{"x":0.6599113576836544,"y":-0.3810000000000855},{"x":0.5388153672640783,"y":-0.5388153672640783},{"x":0.3809999999999718,"y":-0.6599113576835407},{"x":0.1972201123681998,"y":-0.7360354796321644},{"x":0,"y":-0.7620000000000573},{"x":-0.19722011236808612,"y":-0.7360354796321644},{"x":-0.3810000000000855,"y":-0.6599113576835407},{"x":-0.5388153672640783,"y":-0.5388153672640783},{"x":-0.6599113576837681,"y":-0.3810000000000855},{"x":-0.7360354796323918,"y":-0.19722011236808612},{"x":-0.7620000000000573,"y":0},{"x":-0.7360354796323918,"y":0.1972201123681998},{"x":-0.6599113576837681,"y":0.3809999999999718},{"x":-0.5388153672640783,"y":0.538815367264192},{"x":-0.3810000000000855,"y":0.6599113576836544},{"x":-0.19722011236808612,"y":0.7360354796322781},{"x":0,"y":0.7619999999999436},{"x":0.1972201123681998,"y":0.7360354796322781},{"x":0.3809999999999718,"y":0.6599113576836544},{"x":0.5388153672640783,"y":0.538815367264192},{"x":0.6599113576836544,"y":0.3809999999999718},{"x":0.7360354796322781,"y":0.1972201123681998},{"x":0.7619999999999436,"y":0}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="2.4986mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.120200000000068,"y":1.7486000000000104},{"x":3.1201999999999543,"y":1.7486000000000104},{"x":3.1201999999999543,"y":-1.774000000000001},{"x":-3.120200000000068,"y":-1.774000000000001},{"x":-3.120200000000068,"y":1.7486000000000104}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2888420.obj?uuid=f7b3c012650c4dd98a67d3ac9a9d13dc",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2888420.step?uuid=f7b3c012650c4dd98a67d3ac9a9d13dc",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0, z: -1.5 },
}}
{...restProps}
/>
)
}