hrithik18k/smart-switch-touch

A 45×40 mm four-key capacitive touch panel using a TTP224C controller, touch electrodes, four red LEDs with 220 Ω resistors, filtering/tuning capacitors, and host/indicator wire-land connectors.

Version
1.1.0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone hrithik18k/smart-switch-touch  # download the package files into ./smart-switch-touch
tsci add hrithik18k/smart-switch-touch    # add it to your project as @tsci/hrithik18k.smart-switch-touch

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

imports/E6Q1206URAC1UDA.tsx

import type { LedProps } from "@tscircuit/props"

export function E6Q1206URAC1UDA(props: LedProps) {
  return (
    <led
      manufacturerPartNumber="E6Q1206URAC1UDA"
      supplierPartNumbers={{ jlcpcb: ["C375579"] }}
      pinLabels={{ pin1: ["cathode", "neg"], pin2: ["anode", "pos"] }}
      footprint={
        <footprint>
          <hole pcbX={0} pcbY={0} diameter="2mm" />
          {/* The imported 1206 pattern had a 1.5 mm gap. Use the datasheet's
              1.5 mm square lands and widen the gap to 2.5 mm for the optical drill. */}
          <smtpad shape="rect" pcbX={-2} pcbY={0} width="1.5mm" height="1.5mm" portHints={["pin1", "cathode", "neg"]} />
          <smtpad shape="rect" pcbX={2} pcbY={0} width="1.5mm" height="1.5mm" portHints={["pin2", "anode", "pos"]} />
          <silkscreenpath route={[{ x: -2.98, y: -0.98 }, { x: -2.98, y: 0.98 }]} />
          <silkscreentext text="{NAME}" pcbX={0} pcbY={2.11} fontSize="1mm" anchorAlignment="center" />
          <courtyardrect pcbX={0} pcbY={0} width="6.15mm" height="2.1mm" />
        </footprint>
      }
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C375579.obj?uuid=3bb8a05ba20a43a790e12029445fe6d6",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C375579.step?uuid=3bb8a05ba20a43a790e12029445fe6d6",
      }}
      {...props}
    />
  )
}