I wanted per-app layers on my Creator Micro without having to remember which layer was active, so I moved the logic off the board.
The idea: a custom keymap for `work_louder/micro` that, while a host app is connected, sends raw key/encoder events over Raw HID (usage page `0xFF60`) instead of keycodes. The host sends back per-key RGB, underglow and indicator states. A macOS menu bar app maps events to actions based on the frontmost app.
Details that might interest this sub:
- Tiny protocol: 32-byte reports, key down/up, encoder cw/ccw, hello/ping, key colors in batches of ≤ 9, fill, flash, brightness, underglow, indicators. It's documented in the README.
- Heartbeat fallback: the host pings every second. If it stops for 3 s, the regular keymap takes over and the pad is a normal keyboard again.
- Key colors and underglow are driven live from the host, so profile changes need no reflashing.
- Flash budget is tight: 26.9 / 28.6 KB (93%) on the atmega32u4. `config.h` lists RGB animations you can drop for room.
- The host side is native Swift: IOKit HID, CGEvent for shortcuts, Accessibility to read app menus.
Mine is the Work Louder × Figma edition. The keymap targets the QMK-supported atmega32u4 Creator Micro.
Repo (GPL-2.0, same as QMK): https://github.com/andreaperaltro/micropad-creator-micro
I'd love feedback on the protocol design, and on whether anyone would want this ported to other macropads. The host app doesn't care much about the board as long as it speaks the protocol.