Skip to main content

Writing · December 6, 2026

Opus Bricked My Keyboard. Neon Revived It Over USB.

Open-heart surgery on a 64 KB keyboard chip over a USB cable: how Gemini 4 Neon spotted a 2.2-second watchdog pulse, built a 20ms ambush script, and reflashed my bricked NuPhy Air75 V1 with zero soldering.

At 9:15 on a Saturday night, my keyboard stopped working—lights off, keys dead, Bluetooth gone.

My computer popped up "USB device not recognized" (Set Address Failed). Different cables did nothing. Different ports did nothing. Factory reset shortcuts did nothing.

I'm not a hardware guy. I don't own a soldering iron or an Arduino. But as a tinkerer, you don't just walk away from a $120 keyboard you broke ten minutes ago.

Below is how Gemini 4 Neon cleaned up the mess Claude Opus made—and why those 90 minutes left me completely AI-pilled.


How I broke a 64 KB computer

A modern keyboard is a mini-computer shrunk onto one chip (a microcontroller): a tiny brain (processor), a scratchpad (RAM, which wipes when unplugged), and a permanent notebook (flash memory).

Inside my NuPhy Air75 V1, that entire notebook is just 64 kilobytes—smaller than the space a single blurry thumbnail photo takes on your phone. At the bottom level, the chip only speaks 0s and 1s, grouped into 8-bit chunks called bytes (think of each byte as one numbered locker, and 1 kilobyte as 1,024 lockers). Everything the keyboard knows—its compiled operating software and your saved settings—sits side-by-side in one hallway of 65,536 numbered lockers, with no folders or walls between them:

Over USB, the keyboard exposes two separate channels: a normal one for typing letters, and a hidden settings channel that the manufacturer's companion app uses to change lighting and shortcuts.

Earlier that night, I was using Claude Opus to build a custom web app for that private lighting channel. Every settings write starts with a short header—like a shipping label saying where the data goes. Without official docs, we guessed one byte (0x40, or 64) meant "this 1,024-byte color block is 64 chunks big." It actually meant "skip 64 bytes ahead before writing." So our write spilled 64 bytes past the end of the color section right into neighboring lockers.

We fixed the header and things worked for a bit, until I kept tweaking effects (with two copies of my script running at once) and the keyboard flatlined at 9:15 PM.

Opus reviewed our backups and delivered a grim verdict: the chip looked like it was crashing before USB even came online. And if a device can't speak USB, the cable is a dead phone line—nobody is picking up on the other end. Traditionally, the only fix is to crack the case open and wire an Arduino directly to six pins on the circuit board.


Spotting a two-second heartbeat

Before ordering an Arduino, I wanted a sanity check. I'd been working on Windows, so I plugged the keyboard into my Mac just to get cleaner USB logs and asked Gemini 4 Neon in Antigravity to take a look.

At first, even the Mac showed nothing plugged in—the USB port had already suspended itself after dozens of failed attempts.

Instead of stopping at a blank device list, Neon checked the low-level USB port error counters (79 enumeration failures, 50 address failures) and rewound the system logs. Buried in there was a pulse:

22:04:44  Connected: BY Tech Air75 (keyboard + config channel)
22:04:46  Disconnected   (2.3 seconds later)
22:04:49  Connected: BY Tech Air75 (keyboard + config channel)
22:04:51  Disconnected   (2.2 seconds later)

Over twenty-five times in a row, the keyboard had woken up, connected over USB, stayed alive for 2.2 seconds, and vanished.

It wasn't dead—it was trapped in a watchdog timer loop. Small chips have a built-in safety alarm that forces a hard reboot whenever the software freezes for a couple of seconds. Humanly, it's impossible to open an app and fix anything in 2.2 seconds—but programmatically, a script polling USB fifty times a second has plenty of time.


Hypothesis 1 fails—and unlocks Hypothesis 2

I handed Neon Opus's notes and our pre-crash backups. Neon wrote a read-only Python script polling USB every 20 milliseconds. I replugged the cable, and inside that 2.2-second window it pulled live memory straight off the dying chip—confirming 64 straight bytes of FF (blank erased space) sitting at 0xBC00, right where our off-by-64 write had spilled.

Hypothesis #1: Maybe it's only crashing because the active lighting profile is stuck on a bad effect. Slip our clean settings backup onto the chip during that 2.2-second window, and it might boot fine.

I replugged. The script wrote the clean backup and verified it byte-for-byte—and two seconds later, the keyboard still disconnected and rebooted.

Hypothesis #1 was dead. Patching settings wouldn't save it; we needed a full firmware re-flash. But that failed test proved something priceless: we could reliably talk to the chip inside that 2.2-second window.


The six-byte escape hatch

Like most gadgets, this chip has an untouchable "safe mode" in its last 4 KB (the bootloader) built solely to accept fresh firmware over USB. Most keyboards have a physical pinhole reset button to trigger it—NuPhy actually added one under the Caps Lock key in the Air75 V2—but the original V1 doesn't have one. Without opening the case, the only way into safe mode is sending a secret USB command while the normal software is awake.

In two minutes, Neon:

  1. Pulled the open-source sinowisp Rust flasher from GitHub and found the exact 6-byte safe-mode command: 05 75 00 00 00 00.
  2. Downloaded NuPhy's official v1.0.3 firmware updater (.exe), decrypted the raw 61,440-byte factory image (TEA-encrypted inside the installer), and verified its internal BY Tech / Air75 IDs.
  3. Rigged a 20 ms catch script to fire those 6 bytes on plug-in and back up all 65,536 bytes of the chip first before writing anything.

I replugged the cable one more time:

[23:01:53] Opened config channel! Sending safe-mode command (05 75 00 00 00 00)...
[23:01:56] SUCCESS! Keyboard entered safe mode (0603:1020)!
[23:01:57] Backing up full 64KB flash...
Successfully read 65536 bytes.

That was the moment everything flipped. After two hours of flickering out every 2.2 seconds, the reboot loop stopped cold. The keyboard sat calmly in safe mode—finally steady, finally listening over USB.

One glance at the full backup confirmed 0xBC00–0xBC3F (64 bytes) was the only unexpected hole in the entire chip. Then came the flash:

Erasing... Writing 30/30... Verifying 30/30... Rebooting...
Successfully wrote 61440 bytes.

Seconds later, all 7 USB interfaces came up rock steady on fresh v1.0.3 firmware. Lights on. Every key working. Zero screws touched.


Why Neon's ambush trick was so smart

Remember, when Neon started, the USB port was already suspended and showed up blank. Normal debugging stops at "device not found."

Neon connected two dots: the historical logs showed a 2.2-second heartbeat, and a single USB command only takes ~50 milliseconds. So instead of running one-off commands that always miss the window, it laid a 20-millisecond polling ambush—and when settings recovery failed, immediately pivoted to firing the 6-byte safe-mode command through that same tiny crack.


What a time to be alive

Just a few years ago, a mistake like this has only two endings: the keyboard ends up in a landfill, or you go through NuPhy support / a repair shop—where even a service center isn't going to debug a 2.2-second watchdog loop on a 64 KB chip; they'd just replace the board.

Instead, in two hours of tinkering on a Saturday night, a non-hardware guy waded into USB kernel logs, 8051 memory maps, Rust flasher source code, and encrypted firmware installers—and saved a piece of hardware with nothing but a USB cable.

It's wild the times we live in. Whenever someone asks me why I'm AI-pilled, I'm not sending them a benchmark chart. I'm just telling them I typed this on a keyboard that was supposed to be in a landfill two hours ago.