witnuino
handheld game · c++ · arduino
2024
Witnuino is a small, battery-powered handheld "game console" with a touch screen, built on an Arduino Uno R3. I designed, coded and built it. It runs my recreation of the puzzle language of The Witness, one of my favourite puzzle games, with around 50 puzzles, most of them my own designs, following the original game's rules.
The challenge and fun was keeping the code simple, efficient and small within the limits of the Uno (2 KB SRAM, 32 KB flash, 1 KB EEPROM). It has a flood-fill based solver, and I wrote a separate level editor to create the puzzles. Levels and the player's progress live on a microSD card in a simple custom save system, so the device can be switched off without losing progress. The code is on github.