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-mouseIn 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/MDBT42V_512KV2.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["GND1"],
pin2: ["SWDCLK"],
pin3: ["P0_21","RESET"],
pin4: ["SWDIO"],
pin5: ["P0_20"],
pin6: ["P0_16"],
pin7: ["P0_15"],
pin8: ["P0_14"],
pin9: ["P0_12"],
pin10: ["GND2"],
pin11: ["P0_09"],
pin12: ["P0_08"],
pin13: ["P0_10"],
pin14: ["P0_06"],
pin15: ["P0_01","XL2"],
pin16: ["P0_00","XL1"],
pin17: ["P0_04"],
pin18: ["GND3"],
pin19: ["P0_30"],
pin20: ["VDD"],
pin21: ["DEC4"],
pin22: ["DCC"],
pin23: ["P0_29"],
pin24: ["P0_28"],
pin25: ["P0_25"],
pin26: ["P0_02"],
pin27: ["P0_03"],
pin28: ["P0_11"],
pin29: ["GND4"]
} as const
const pinAttributes = {
pin1: {capabilities: [], requiresGround: true, requiresVoltage: 0, mustBeConnected: true},
pin10: {capabilities: [], requiresGround: true, requiresVoltage: 0, mustBeConnected: true},
pin18: {capabilities: [], requiresGround: true, requiresVoltage: 0, mustBeConnected: true},
pin20: {isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true},
pin29: {capabilities: [], requiresGround: true, requiresVoltage: 0, mustBeConnected: true},
pin2: {isInput: true, capabilities: []},
pin3: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin4: {isInput: true, isOutput: true, isBidirectional: true, capabilities: []},
pin5: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin6: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin7: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin8: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin9: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin11: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin12: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin13: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin14: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin15: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin16: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin17: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin19: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin21: {isOutput: true, capabilities: [], providesPower: true, shouldHaveDecouplingCapacitor: true},
pin22: {isOutput: true, capabilities: [], providesPower: true},
pin23: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin24: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin25: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin26: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin27: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true},
pin28: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: [], isGpio: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>
export const MDBT42V_512KV2 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C5299881"
]
}}
manufacturerPartNumber="MDBT42V-512KV2"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-2.675001mm" pcbY="2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-2.675001mm" pcbY="1.624965mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-1.900047mm" pcbY="1.249807mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-2.675001mm" pcbY="0.874903mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-1.900047mm" pcbY="0.499999mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-2.675001mm" pcbY="0.124841mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-1.900047mm" pcbY="-0.250063mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-2.675001mm" pcbY="-0.624967mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="-2.675001mm" pcbY="-1.375029mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="-2.675001mm" pcbY="-2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="-1.900047mm" pcbY="-1.790065mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="-1.425067mm" pcbY="-2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="-0.950087mm" pcbY="-1.790065mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="-0.475107mm" pcbY="-2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="0.000127mm" pcbY="-1.790065mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="0.475107mm" pcbY="-2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="0.950087mm" pcbY="-1.790065mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="1.425067mm" pcbY="-2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="1.900047mm" pcbY="-1.790065mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="2.675001mm" pcbY="-2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="2.675001mm" pcbY="-1.375029mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin22"]} pcbX="2.675001mm" pcbY="-0.624967mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin23"]} pcbX="1.900047mm" pcbY="-0.250063mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin24"]} pcbX="2.675001mm" pcbY="0.124841mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin25"]} pcbX="1.900047mm" pcbY="0.499999mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin26"]} pcbX="2.675001mm" pcbY="0.874903mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin27"]} pcbX="1.900047mm" pcbY="1.249807mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin28"]} pcbX="2.675001mm" pcbY="1.624965mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin29"]} pcbX="2.675001mm" pcbY="2.375027mm" width="0.5500116mm" height="0.3999992mm" shape="rect" />
<silkscreenpath route={[{"x":-3.1999935999999707,"y":2.821533600000066},{"x":3.1999935999999707,"y":2.821533600000066}]} />
<silkscreenpath route={[{"x":-3.1999935999999707,"y":-2.80007060000014},{"x":-3.1999935999999707,"y":5.599912600000039},{"x":3.1999935999999707,"y":5.599912600000039},{"x":3.1999935999999707,"y":-2.80007060000014},{"x":-3.1999935999999707,"y":-2.80007060000014}]} />
<silkscreentext text="{NAME}" pcbX="-0.020701mm" pcbY="6.600573mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-3.0239970000000085,"y":5.499912800000061},{"x":-3.0239970000000085,"y":-2.6240709520001246},{"x":3.0239939519998416,"y":-2.6240709520001246},{"x":3.0239939519998416,"y":5.423915999999963},{"x":-2.899994200000151,"y":5.423915999999963},{"x":-2.9755127526555043,"y":5.499914323999974},{"x":-2.899994200000151,"y":5.575912647999985},{"x":3.0999937999998792,"y":5.575912647999985},{"x":3.1537318375314953,"y":5.553651730288038},{"x":3.1759905999998637,"y":5.499912800000061},{"x":3.1759905999998637,"y":-2.700070799999935},{"x":3.1537318375314953,"y":-2.753809730288026},{"x":3.0999937999998792,"y":-2.7760706480000863},{"x":-3.0999938000002203,"y":-2.7760706480000863},{"x":-3.153733807890262,"y":-2.753810807889977},{"x":-3.1759936480000306,"y":-2.700070799999935},{"x":-3.1759936480000306,"y":5.499912800000061},{"x":-3.0999953240001332,"y":5.575431352655414},{"x":-3.0239970000000085,"y":5.499912800000061}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-3.4499935999999707,"y":5.839905000000044},{"x":3.4499935999999707,"y":5.839905000000044},{"x":3.4499935999999707,"y":-3.060078199999907},{"x":-3.4499935999999707,"y":-3.060078199999907},{"x":-3.4499935999999707,"y":5.839905000000044}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5299881.obj?uuid=c756fed63f1c4311ad9870e138fbfd6c",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5299881.step?uuid=c756fed63f1c4311ad9870e138fbfd6c",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: -1.3899134000000686, z: -0.02 },
}}
{...props}
/>
)
}