krishnax12/watchy-eink-smartwatch
This code defines a hardware schematic and PCB layout for a smartwatch using components like ESP32 microcontroller, sensors, Bluetooth module, power regulation, and connectors, with detailed component footprints and PCB outlines.
- Version
- 1.2.1
- License
- unset
- Stars
- 2
imports/PagerMotor.tsx
import type { ChipProps } from "tscircuit";
import motorStep from "../assets/PagerMotor.step";
const pinLabels = {
pin1: ["pin1", "1"],
pin2: ["pin2", "2"],
} as const;
export const PagerMotor = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
footprint={
<footprint>
<smtpad portHints={["pin1", "1"]} pcbX="0mm" pcbY="-1mm" width="1.5mm" height="1.35mm" shape="rect" />
<smtpad portHints={["pin2", "2"]} pcbX="0mm" pcbY="1mm" width="1.35mm" height="1.5mm" shape="rect" />
</footprint>
}
cadModel={{
stepUrl: motorStep,
positionOffset: { x: 4.5, y: 0, z: 0 },
rotationOffset: { x: 0, y: 0, z: 90 },
}}
{...props}
/>
);
};