MustafaMulla29/wireless-mouse-pcb

A 3D-printed wireless mouse enclosure housing a 44×70 mm PCB with nRF52810 BLE control, optical sensor, USB-C LiPo charging/power circuitry, buttons, scroll encoder/wheel, and battery bay.

Version
1.0.18
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone MustafaMulla29/wireless-mouse-pcb  # download the package files into ./wireless-mouse-pcb
tsci add MustafaMulla29/wireless-mouse-pcb    # add it to your project as @tsci/MustafaMulla29.wireless-mouse-pcb

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.

firmware/Kconfig

# SPDX-License-Identifier: Apache-2.0

mainmenu "PMW3610 BLE mouse"

source "Kconfig.zephyr"

menu "Mouse hardware orientation"

config PMW3610_SWAP_XY
	bool "Swap PMW3610 X and Y axes"
	default y
	help
	  The sensor package is rotated 90 degrees on this PCB, so its axes
	  must be swapped to align with the board axes.

config PMW3610_INVERT_X
	bool "Invert PMW3610 X axis"
	default n

config PMW3610_INVERT_Y
	bool "Invert PMW3610 Y axis"
	default y
	help
	  Initial transform for the selected 90-degree PCB orientation. If
	  physical cursor testing shows a reversed axis, only these firmware
	  options change; the PCB does not.

endmenu