This technical experiment explores using AI coding agents to develop custom firmware for the PineTime, a $27 open-source smartwatch. Using the OpenCode platform and various open-weights models—including Kimi K3, K2.6, DeepSeek v4 Pro, and DeepSeek Flash—the developer successfully implemented a custom Casio-style watch face for the InfiniTime codebase. The workflow involved cloning the InfiniSim repository on Ubuntu Linux and utilizing AI to orchestrate sub-agents for development tasks. While the AI initially struggled with pixel-perfect text positioning and sizing, the developer transitioned to an iterative approach, providing specific feedback for isolated tasks to refine the layout. To optimize performance on the limited hardware, the developer moved from rendering static elements via code to using a fullscreen background image. This approach revealed hardware constraints: the 240x240 image required a 10-minute Bluetooth transfer to the device and necessitates streaming from the file system because the watch cannot hold the full image in memory, resulting in a 1–2 second screen refresh delay. The project demonstrates the efficacy of using AI agents for rapid prototyping in embedded systems development, even when working with constrained resources and open-weights models.

Read original