Playing around with cheap, wearable embedded development.
Written in C, with a custom linker script and a sprinkling of inline ARM assembly. No OS, SDK, HAL, or external graphics library.
Yes it still needs tests. Among other things.
Boots on real PineTime hardware! Clock counts, wraps, and has dirty-region character drawing.
- First successful execution on physical hardware: Nov 21, 2026
- Initial working firmware footprint: 2,024 bytes!
- graphics primitives
- fill/void (rect, triangle, circle)
- lines
- single-pixel placement
- display fill/clear
- bitmap font with optional scaling
- dirty region rendering
- timekeeping
- hardware RTC configuration
- rollover-safe elapsed tick calculation
- fractional tick accumulation
- 24-hour timekeeping
- fixed-width HH:MM:SS rendering
- hardware drivers
- bare-metal runtime
- custom linker script for memory layout (what a feature!)
- interrupt vector table (needs...fleshed out)
- reset and default exception handlers (technically)
- .data initialization and .bss zeroing
- development infrastructure
- independent hardware and emulator build configurations
- automated firmware flashing and verification via SWD
- (required: human manually holding probe in place, gently)
- compilation database generation for clangd
- eccentric README
Pine64 for the PineTime hardware this whole project is based around! (not a sponsor!)
Special thanks to Weichwolf for developing pinetime-emu, an ARM Cortex-M4F and nRF52832 emulator for the PineTime. This project has been invaluable for developing and testing ls-watch firmware without requiring physical hardware for every iteration.
ls-watch is licensed under the Mozilla Public License 2.0.
You are free to use, modify, and distribute this software, including for commercial purposes, subject to the terms of the license. Modifications to MPL-covered source files must remain available under the MPL 2.0 when distributed.
See LICENSE for the full license text.