Devesh36/clear-mouse

A transparent, right-handed wireless mouse assembly with a 44×58 mm control PCB, LiPo battery, optical sensor, click buttons, scroll encoder, DPI/middle buttons, USB‑C charging, and 3D‑printed housing/mechanical hardware.

Version
0.1.5
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone Devesh36/clear-mouse  # download the package files into ./clear-mouse
tsci add Devesh36/clear-mouse    # add it to your project as @tsci/Devesh36.clear-mouse

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

import officialStep from "../assets/EC10E12_H07.step"
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin4: ["pin4"],
  pin5: ["pin5"],
  pin6: ["A"],
  pin7: ["B"],
  pin8: ["C"]
} as const

export const EC10E1220505 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematiccircle center={{ x: -0.1, y: -0.3 }} radius={0.05} strokeWidth={0.02} color="#880000" />
          <schematiccircle center={{ x: -0.5, y: -0.3 }} radius={0.05} strokeWidth={0.02} color="#880000" />
          <schematicpath points={[{"x":-0.06,"y":-0.18},{"x":-0.53,"y":-0.24}]} strokeColor="#880000" />
          <schematiccircle center={{ x: -0.1, y: 0.1 }} radius={0.05} strokeWidth={0.02} color="#880000" />
          <schematiccircle center={{ x: -0.5, y: 0.1 }} radius={0.05} strokeWidth={0.02} color="#880000" />
          <schematicpath points={[{"x":-0.06,"y":0.22},{"x":-0.53,"y":0.16}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.04,"y":0.1},{"x":0.3,"y":0.1},{"x":0.3,"y":-0.3},{"x":-0.04,"y":-0.3}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.3,"y":-0.1},{"x":0.7,"y":-0.1}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.56,"y":0.1},{"x":-0.7,"y":0.1}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.56,"y":-0.3},{"x":-0.7,"y":-0.3}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.5,"y":-0.1},{"x":0.5,"y":-0.22}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.42,"y":-0.22},{"x":0.58,"y":-0.22}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.44,"y":-0.22},{"x":0.4,"y":-0.26}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.48,"y":-0.22},{"x":0.44,"y":-0.26}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.52,"y":-0.22},{"x":0.48,"y":-0.26}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.56,"y":-0.22},{"x":0.52,"y":-0.26}]} strokeColor="#880000" />
          <port name="pin6" pinNumber={6} aliases={["A"]} direction="left" schX={-0.9} schY={-0.3} schStemLength={0.2} />
          <port name="pin7" pinNumber={7} aliases={["B"]} direction="left" schX={-0.9} schY={0.1} schStemLength={0.2} />
          <port name="pin8" pinNumber={8} aliases={["C"]} direction="right" schX={0.9} schY={-0.1} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="left" schX={-0.9} schY={-0.5} schStemLength={0.4} />
          <port name="pin5" pinNumber={5} aliases={["5"]} direction="right" schX={0.9} schY={-0.5} schStemLength={0.4} />
          <schematicpath points={[{"x":-0.5,"y":-0.5},{"x":0.5,"y":-0.5}]} strokeColor="#880000" />
          <schematictext schX={-0.001} schY={0.51} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C160888"
  ]
}}
      manufacturerPartNumber="EC10E1220505"
      footprint={<footprint>
        <platedhole  portHints={["pin6"]} pcbX="-2.499995mm" pcbY="-0.5749989mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<platedhole  portHints={["pin7"]} pcbX="-0.000127mm" pcbY="-0.5749989mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<platedhole  portHints={["pin8"]} pcbX="2.499995mm" pcbY="-0.5749989mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<platedhole  portHints={["pin4"]} pcbX="-4.499991mm" pcbY="1.4249971mm" holeWidth="2.5000204mm" holeHeight="2.1999956mm" outerWidth="3.1999936mm" outerHeight="2.999994mm" pcbRotation="90deg" shape="pill" />
<platedhole  portHints={["pin5"]} pcbX="4.499991mm" pcbY="1.4249971mm" holeWidth="2.5000204mm" holeHeight="2.1999956mm" outerWidth="3.1999936mm" outerHeight="2.999994mm" pcbRotation="90deg" shape="pill" />
<silkscreenpath route={[{"x":-4.900117200000068,"y":-2.274995499999932},{"x":4.899863199999913,"y":-2.274995499999932}]} />
<silkscreenpath route={[{"x":4.899863199999913,"y":3.8249668999999358},{"x":-4.900117200000068,"y":3.8249923000000763}]} />
<silkscreenpath route={[{"x":-4.900117200000068,"y":3.8249923000000763},{"x":-4.900117200000068,"y":3.209194699999898}]} />
<silkscreenpath route={[{"x":-4.900117200000068,"y":-0.359200499999929},{"x":-4.900117200000068,"y":-2.274995499999932}]} />
<silkscreenpath route={[{"x":4.899863199999913,"y":3.8249668999999358},{"x":4.899863199999913,"y":3.209245499999952}]} />
<silkscreenpath route={[{"x":4.899863199999913,"y":-0.3592513000000963},{"x":4.899863199999913,"y":-2.274995499999932}]} />
<silkscreentext text="{NAME}" pcbX="-0.000127mm" pcbY="4.9903971mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-6.249987999999917,"y":4.074992300000076},{"x":6.249987999999917,"y":4.074992300000076},{"x":6.249987999999917,"y":-2.524995499999932},{"x":-6.249987999999917,"y":-2.524995499999932},{"x":-6.249987999999917,"y":4.074992300000076}]} />
      </footprint>}
      // Alps EC10E1220505 H=7mm model; mount plane Z=-7.193 and
      // signal-pin row Y=0.34765 maps to footprint row Y=-0.5749989.
      cadModel={{
        stepUrl: officialStep,
        modelOriginPosition: { x: 0, y: 0.9226489, z: -7.193 },
      }}
      {...props}
    />
  )
}