GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rileyr/cascade-qmk: Custom lighting and QMK firmware for the AZIO Cascade Slim

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
docs
docs
 
 
qmk
qmk
 
 
stock
stock
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
setup.sh
setup.sh
 
 

Repository files navigation

cascade-qmk

Custom lighting and QMK firmware for the AZIO Cascade Slim (and, untested, the full-height Cascade, which Azio's FCC filing says is the same board).

The Cascade ships with 4 lighting modes and 9 colours, no software, and a Windows-only firmware updater. It turns out the main chip is a Sonix SN32F248B, the same family SonixQMK already targets, and the board is electrically a near twin of the Keychron K2. So this repo gives you two things:

  1. A stock-firmware patch: your own 8 colours and your own rainbow, in Azio's firmware, Bluetooth and all. No code changes beyond a small patch that makes Wave follow your wheel.
  2. A full QMK port: every key verified, per-key RGB with 49 QMK effects plus two custom ones, VIA, a Fn+Esc bootloader key, and a local web app + JSON API to preview, pick, build, flash, and change the lighting live over USB.

QMK tab

Status

Key matrix 84 keys verified on hardware
Lighting all 84 LEDs, right colours, right keys
Effects 49 built-in + Drift + Fireflies, selectable "pack"
Live control VIA raw HID: read/set effect, hue, sat, brightness, speed
Bluetooth wired only under QMK (the Bluetooth module is a separate chip on SPI; protocol not done)
Recovery the Sonix ROM bootloader is always reachable; stock firmware is one flash away

Safety and legal, read this

  • This rewrites your keyboard's firmware. It has worked on one board, mine. The ROM bootloader cannot be overwritten, so a bad flash is recoverable, but you accept the risk.
  • Azio's firmware is not in this repo. stock/extract_stock.py downloads Azio's own public updater from their support site and extracts the image on your machine. The flasher and the app refuse to flash anything until that image exists locally, so the way back is always there.
  • Don't flash this to any other keyboard. Pin assignments are specific to this PCB.
  • The stock firmware presents itself as an Apple keyboard (Apple's USB vendor ID). The QMK build does not: it uses 0xFEED:0xCA5C, the usual convention for hobby firmware. Macs are fine with it.

Quick start

git clone <this repo> && cd cascade-qmk
./setup.sh                                   # venv, SonixQMK checkout, board link
                                             # (setup also fetches Azio's stock image: flashing refuses to run without it)
.venv/bin/python app/server.py               # http://127.0.0.1:8765

Compile the QMK build (needs an ARM toolchain with newlib; Arm's own build works, see setup.sh):

cd qmk_firmware && PATH="$PWD/../tools/arm-gnu-toolchain/bin:$PATH" ../.venv/bin/qmk compile -kb azio/cascade_slim -km default

Flash (works for stock patches and QMK images alike):

.venv/bin/python tools/cascade_flash.py wait && .venv/bin/python tools/cascade_flash.py flash qmk_firmware/azio_cascade_slim_default.bin

then put the board in the bootloader: on stock firmware pull the spacebar keycap, short the two right-most of the five pads left of the switch with tweezers, and plug in while shorted; on QMK hold Fn and tap Esc. The job flashes and the board reboots. The web app does the same with buttons.

Where the stock firmware comes from, and how to go back

Nothing in this repo contains Azio's firmware. Azio publishes a Windows updater on their support site; it is Sonix's flashing tool with the complete 64 KB firmware image embedded inside the .exe as a resource. stock/extract_stock.py downloads that updater from Azio's URL, extracts the image, checks its hash against the one this project was built with, and saves it as stock/cascade_v15_sn32.bin on your machine. Only the URL, the resource location and the expected hash are hard-coded.

Restoring stock firmware flashes that local file, with Bluetooth and everything else exactly as Azio shipped it: tools/cascade_flash.py flash stock/cascade_v15_sn32.bin, or the "Restore stock firmware" button in the app. The bootloader is in ROM and is not the stock firmware, so you do need the extracted image to go back.

The web app

Stock tab

Two tabs. Stock firmware patch: edit the 8-colour palette and the rainbow wheel (2 to 21 stops), preview the stock modes on a drawing of the board, build, flash. Presets included. QMK build: see what firmware the board runs, every effect with a live preview, a "pack" (the set compiled in and cycled by Fn+End), the Fn layer, and a live panel that reads and sets the board's effect, hue, saturation, brightness and speed with no flash.

JSON API on 127.0.0.1:8765, for scripts and agents:

call does
GET /api/state config, device + firmware detection, last build, flash job
PUT /api/config {"palette":[8 hex],"wheel":[2..21 hex]} or {"preset":"ocean"} stock colours
POST /api/build patch the stock image with the current colours
GET /api/effects, PUT /api/effects {"enabled":[ids]} the pack; PUT regenerates the board (then compile)
GET /api/live, PUT /api/live {"effect","hue","sat","val","speed"} the keyboard right now (QMK + VIA)
GET /api/images, POST /api/flash {"image": name or "stock"} arm a flash job

Layout of this repo

  • qmk/keyboards/azio/cascade_slim/ the QMK board: pins, matrix, LED layout, keymaps (default with Fn layer and custom effects; debug with the console; probe types each key's matrix position). setup.sh links it into the SonixQMK checkout.
  • tools/gen_board.py generates keyboard.json/keymap from the verified matrix and the pack.
  • tools/cascade_flash.py Sonix ISP bootloader flasher (the protocol SonixQMK's GUI flasher uses).
  • tools/via_lighting.py live lighting over VIA raw HID.
  • stock/patch_palette.py, stock/patch_wave.py the stock-firmware patches (tables, plus a 3-call Thumb patch that makes Wave read the wheel).
  • app/ the web app and API.
  • docs/PINOUT.md the recovered pinout; docs/METHOD.md how it was reverse engineered.
  • tools/disasm.py, tools/gpio_scan.py, tools/decompile_all.py the analysis tools used.

Credits

SonixQMK for the SN32 port and the LED driver this board runs on; QMK; the SonixQMK flasher for the bootloader protocol. Keychron's K2 definition was the Rosetta stone for the pinout.

License

MIT for the tools, app and docs (see LICENSE). The QMK board definition under qmk/ is GPL-2.0-or-later, like QMK (see qmk/LICENSE).

About

Custom lighting and QMK firmware for the AZIO Cascade Slim

Topics

azioazio-cascadecustom-keyboardfirmware-patchingkeyboard-firmwaremechanical-keyboardqmkqmk-firmwarergb-matrixsonixsonixqmkvia

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.