Boards · YUNZII

YUNZII YZ-21 keyboard software

Remap keys, set the RGB, record macros and change device settings on the YUNZII YZ-21. Free and open source. Use it in a Chromium browser with nothing to install, or download the desktop app for Windows, macOS or Linux. Either way it runs entirely on your own machine: no account, and the browser version makes no network requests once the page has loaded.

4 revisions of the YZ-21 ship under this name. They are on different controllers, so they are genuinely different hardware and not just a firmware bump. sharkfin does not ask you which one you have: the board reports its own device ID when it is plugged in, and the right command set follows from that.

What sharkfin does with the YZ-21

  • Remap any key. Click a key on a picture of the board and give it another key, a mouse button, cursor movement, the scroll wheel, a macro or a media control. Base and Fn layers both. 2 or 3 onboard profiles, by revision.
  • Lighting. 18 backlight effects with direction options, full RGB colour, brightness and speed. The effect runs on a picture of the board as you change it; a slider writes to the board when you let go of it.
  • Per-key colour. Paint individual keys and send the pattern to the board's flash.
  • Macros. Record key and mouse sequences with per-event delays into the 50 onboard slots, then bind a key to one.
  • Debounce. Adjustable, 1 to 10.
  • Sleep timers for 2.4 GHz on some revisions and Bluetooth on some revisions, plus deep sleep.
  • Device settings. Windows-key lock, WASD and arrow-cluster swap, backlight off, host-OS auto-detect and a factory reset, all from the Device page.
  • Backup. Export everything to a file and restore it later.

sharkfin draws the YZ-21 key by key, so you remap on a picture of your own board.

YZ-21 at a glance

BrandYUNZII
ModelYZ-21
USB ID3151:4003, 3151:4010, 3151:4018
Device ID478, 790, 1123, 1154
Protocol familyyc500
Settings writableyes
Drawn layoutyes
Onboard profiles2 or 3
Backlight effects18

gen2 and yc500 are the two command sets these keyboards speak. The same command can mean different things in each, so sharkfin never guesses: the board names itself when it is plugged in, and the command set follows from that.

Connecting

Plug the YZ-21 in with a USB cable. Over a 2.4 GHz receiver sharkfin reads whatever the receiver relays: some carry the settings channel, some carry nothing, and the same model ships with both, so plug the receiver in and the app says which yours is. Writes need the cable. Bluetooth has no settings channel. Settings are stored on the keyboard itself, so everything you change keeps working wirelessly once you unplug. sharkfin never flashes firmware. On Linux, the AppImage and the browser build need a one-line udev rule before they can open the keyboard; the .deb and .rpm install it. And if you are hunting for a polling-rate or report-rate setting: there is none in sharkfin, because this hardware does not expose one.

If the YZ-21 stops responding

It happens: the firmware stops answering and the app says the board needs a replug. Typing keeps working the whole time. In order:

  1. Close sharkfin, or the browser tab. While either is open it keeps trying to reach the board.
  2. Unplug the cable, wait ten seconds, plug it back in. The board needs to lose power, not just reconnect.
  3. Fn + Home turns the lighting back on if the backlight looks dead.
  4. Fn + Esc, held for about three seconds, resets the board's settings.
  5. Still wrong? Open sharkfin and use Device, then Factory reset.

None of this touches firmware; nothing here can leave the YZ-21 unusable.

YZ-21 revisions

Device IDUSB IDControllerFamily WritableLayout
4783151:4003yc580_yz21_dmyc500yesdrawn
7903151:4010yc580_yz21yc500yesdrawn
11233151:4018yc500_yz121_dmyc500yesdrawn
11543151:4010yc500_yz121yc500yesdrawn