gokul/usb3-sd-hub

Engineering draft: four-layer, computer-powered USB 3 hub with one USB-C host socket, two USB-C and two USB-A accessory sockets, and a full-size SD slot. Board and three schematic previews are available. Routing and production checks are incomplete; not fabrication ready.

Version
0.1.5
License
MIT
Stars
0

design/plated-hole-paste-policy.ts

import { PlatedHole } from "tscircuit";

// Board assembly policy: reflow the SMT contacts, then solder connector stakes
// and USB-A pins separately. No stencil apertures on either side of PTH lands.
// The SDK currently inherits paste generation from the whole mixed footprint.
const inheritedIsSmt = PlatedHole.prototype._getIsSmt;
PlatedHole.prototype._getIsSmt = function () {
  if (this._getBoard()?.name === "USB_HUB_BOARD") return false;
  return inheritedIsSmt.call(this);
};