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.

package.json

{
  "name": "@tsci/hrithik18k.smart-switch-touch",
  "version": "1.1.0",
  "description": "45 × 40 mm four-key capacitive touch panel with centered reverse-mount indicators",
  "main": "index.circuit.tsx",
  "keywords": [
    "tscircuit",
    "circuit",
    "pcb",
    "electronics"
  ],
  "scripts": {
    "dev": "tsci dev",
    "build": "tsci build",
    "snapshot": "tsci snapshot",
    "snapshot:update": "tsci snapshot --update",
    "start": "tsci dev",
    "typecheck": "tsc --noEmit"
  },
  "devDependencies": {
    "@types/react": "^19.3.0",
    "tscircuit": "^0.0.3242",
    "typescript": "^5.0.0"
  },
  "author": "hrithik18k"
}