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/BMA423.tsx

import type { ChipProps } from "tscircuit";
import bma423Step from "../assets/BMA423.step";

const pinLabels = {
  "pin1": [
    "pin1",
    "1"
  ],
  "pin2": [
    "pin2",
    "2"
  ],
  "pin3": [
    "pin3",
    "3"
  ],
  "pin4": [
    "pin4",
    "4"
  ],
  "pin5": [
    "pin5",
    "5"
  ],
  "pin6": [
    "pin6",
    "6"
  ],
  "pin7": [
    "pin7",
    "7"
  ],
  "pin8": [
    "pin8",
    "8"
  ],
  "pin9": [
    "pin9",
    "9"
  ],
  "pin10": [
    "pin10",
    "10"
  ],
  "pin11": [
    "pin11",
    "11"
  ],
  "pin12": [
    "pin12",
    "12"
  ]
} as const;

export const BMA423 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      footprint={
        <footprint>
          <smtpad portHints={["pin1", "1"]} pcbX="-0.7625mm" pcbY="0.75mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin2", "2"]} pcbX="-0.7625mm" pcbY="0.25mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin3", "3"]} pcbX="-0.7625mm" pcbY="-0.25mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin4", "4"]} pcbX="-0.7625mm" pcbY="-0.75mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin5", "5"]} pcbX="-0.25mm" pcbY="-0.7625mm" width="0.35mm" height="0.375mm" shape="rect" />
          <smtpad portHints={["pin6", "6"]} pcbX="0.25mm" pcbY="-0.7625mm" width="0.35mm" height="0.375mm" shape="rect" />
          <smtpad portHints={["pin7", "7"]} pcbX="0.7625mm" pcbY="-0.75mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin8", "8"]} pcbX="0.7625mm" pcbY="-0.25mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin9", "9"]} pcbX="0.7625mm" pcbY="0.25mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin10", "10"]} pcbX="0.7625mm" pcbY="0.75mm" width="0.375mm" height="0.35mm" shape="rect" />
          <smtpad portHints={["pin11", "11"]} pcbX="0.25mm" pcbY="0.7625mm" width="0.35mm" height="0.375mm" shape="rect" />
          <smtpad portHints={["pin12", "12"]} pcbX="-0.25mm" pcbY="0.7625mm" width="0.35mm" height="0.375mm" shape="rect" />
        </footprint>
      }
      cadModel={{ stepUrl: bma423Step }}
      {...props}
    />
  );
};