rushabhcodes/desk-fidget-counter
A PLA desk fidget counter assembly houses an F1 PCB, 1.28-inch LCD with harness, rotary knob/bearing mechanism, button cap, and screw-secured base/display mount.
- Version
- 6.0.16
- License
- MIT
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone rushabhcodes/desk-fidget-counter # download the package files into ./desk-fidget-counter
tsci add rushabhcodes/desk-fidget-counter # add it to your project as @tsci/rushabhcodes.desk-fidget-counterIn 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/Makefile
# SPDX-License-Identifier: MIT
CMAKE ?= cmake
PICO_TOOLCHAIN_PATH ?= $(CURDIR)/.deps/toolchain/bin
all:
$(CMAKE) -S . -B build/cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DPICO_TOOLCHAIN_PATH="$(PICO_TOOLCHAIN_PATH)"
$(CMAKE) --build build/cmake
cp build/cmake/desk-knob.elf build/cmake/desk-knob.bin build/cmake/desk-knob.hex build/cmake/desk-knob.uf2 build/
python3 -c 'from pathlib import Path; p=Path("build/desk-knob.hex"); p.write_bytes(p.read_bytes().replace(b"\r\n", b"\n"))'
clean:
rm -rf build/cmake
.PHONY: all clean