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.
layout.ts
// 50 x 90 mm PCB with 13 mm corners to clear the compact enclosure wall.
export const compactOutline = [
[12, 38],
[-12, 38],
[-12, -26],
[12, -26],
].flatMap(([x, y], i) =>
Array.from({ length: 9 }, (_, j) => {
const a = ((i * 90 + (j * 90) / 8) * Math.PI) / 180;
return { x: x + 13 * Math.cos(a), y: y + 13 * Math.sin(a) };
}),
);