Firmware for a Corne split keyboard that turns typing rhythm into a spell duel over a city on its two small screens.
At a glance
Outcome: Turns a split keyboard’s two OLED screens into a spell duel over
a city, shaped by key positions and typing rhythm.
Status: The 0.4 firmware passed a hardware check on July 22, 2026.
Public downloads restarted their numbering: fw-v0.2.0, released October 2,
passed the same check.
Role: Designed the duel, city, data formats and memory limits, reviewed
AI-assisted implementation and ran the hardware checks.
Stack & libraries: C11 on RP2040 controllers under Vial-QMK; a Python
Linux daemon; desktop, browser (WebAssembly), iPhone and Apple Watch shells
over the shared C core; HealthKit on the Watch.
Corne Arcane is firmware for the Corne, a split keyboard with a small screen on each half. The two screens show a spell duel over a city. You type normally. The firmware reads which keys you press and when, never the letters, so it records none of your words.
The complete keyboard half shows the screen beside the keys that control it.
The row you type on most picks a spell’s element. How varied your typing is sets the spell’s form and the shield you hold while typing. A pause of about half a second casts it. Spells leave fires, repairs and other effects in the city’s eight districts below the towers.
At 9.80 seconds, scripted upper-middle-row input builds a Force spell. The indicators show positions, never typed text.At 13.12 seconds, the released Force spell has cost the opponent two health and triggered a room response.
The keyboard runs on its own. An optional Linux helper program changes the city’s setting to match your computer: a Workshop while you write code, an Arena while you play a game, an Observatory during a Pomodoro timer. It sends only categories and counts. Window titles, web addresses and typed text never reach the keyboard.
The half with the USB cable runs the game 25 times a second. It sends the other half a 32-byte summary of the game over the cable between them, and that half only draws it. Each summary carries a checksum, so the receiving half drops damaged or unknown updates. A lost link shows a default scene until a good update arrives.
The master half runs the duel on a 128x32 OLED turned to portrait.The other half draws the world from a 32-byte split snapshot without recomputing it.
The game uses whole-number math, sets aside all its memory up front and never reads the clock. The same keystrokes always produce the same frames. Tests compare drawn frames with saved fingerprints, scan for memory requests and fail the build if the firmware outgrows its storage or memory budget.
The same game code runs in a desktop window, a web browser, an iPhone and an Apple Watch. A test runs the same starting seeds through the native and browser builds and requires matching frames.
Three native C layouts draw the same state at 13.12 seconds. This comparison was rendered on NixOS; it is not a capture of the browser, phone or watch apps.The browser version: the same C compiled to WebAssembly and drawn on a canvas. Seed 90 at 12 seconds, paused for the capture. The world plays itself.The iPhone app on an iPhone SE, with a spell in flight. The city plays itself.
On the Watch, daily activity, heart rate and last night’s sleep become kites, a windmill, and a cockerel or a sleeping cat. A missing reading draws nothing. The app keeps only the latest levels in memory and sends no health data anywhere.
The Linux helper and Vial, the keyboard’s keymap editor, both need the keyboard’s one data channel to the computer. I built a launcher that stops the helper, opens Vial, and restarts the helper afterward only if it was running before.
Vial can start a second copy of itself and quit while its window stays open, so the launcher waits until nothing still holds the keyboard. Tests cover a missing Vial, an interrupted launch, a Vial that hands off to a second copy, and a helper that was already stopped. The diagnostics tool uses the same handoff code.
The video above is the real keyboard. A simulator capture from October 7 shows the same duel with its input and health labels. Each download carries the firmware image and the helper as a Debian package. Next is daily use: the current cities and spells get read at desk distance over full working days before more art or spells are added.
Captured 30 seconds of the simulator driving both screens from scripted key positions.
SIMULATOR, HARDWARE, IPHONE AND WATCH
Typing on the real Corne. Both OLEDs draw the duel from the keys being pressed. Silent, 15 seconds.
Large and medium Home Screen widgets. The medium widget uses the wider view of the town.The tower as a complication on a Watch face. The rings and numbers around it belong to other complications.