krishnax12/watchy-eink-smartwatch
This code defines TypeScript modules to import 3D CAD model files (.step and .stp formats) as URLs representing the physical hardware components.
- Version
- 1.2.2
- License
- MIT
- Stars
- 2
imports/EVQPU_LC_02K.tsx
import type { ChipProps } from "tscircuit";
import buttonStep from "../assets/EVQPU_LC_02K.step";
const pinLabels = {
"pin1": [
"pin1",
"1"
],
"pin2": [
"pin2",
"2"
]
} as const;
export const EVQPU_LC_02K = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
footprint={
<footprint>
<smtpad portHints={["pin1", "1"]} pcbX="2.625mm" pcbY="-0.85mm" width="1.55mm" height="1mm" shape="rect" />
<smtpad portHints={["pin1", "1"]} pcbX="-2.625mm" pcbY="-0.85mm" width="1.55mm" height="1mm" shape="rect" />
<smtpad portHints={["pin2", "2"]} pcbX="2.625mm" pcbY="0.85mm" width="1.55mm" height="1mm" shape="rect" />
<smtpad portHints={["pin2", "2"]} pcbX="-2.625mm" pcbY="0.85mm" width="1.55mm" height="1mm" shape="rect" />
</footprint>
}
cadModel={{
stepUrl: buttonStep,
positionOffset: { x: 0, y: 0.48, z: 1.65 },
rotationOffset: { x: -90, y: 0, z: 180 },
}}
{...props}
/>
);
};