Live pad color control and animation for the erok P16 MIDI pad, based on a protocol reverse-engineered from the KuSuite editor.
| Part | What it is |
|---|---|
PROTOCOL.md |
The pad's packet format, commands, config layout and BLE details |
p16_rgb.py |
Command-line colors and animations over USB MIDI (Windows: no dependencies) |
web/ |
P16 Painter: draw on the pads and run animations from Chrome or Edge via Web MIDI |
android/ |
P16 Studio: Android app (USB or Bluetooth), built without Gradle |
capture/ |
Scripts used to decode Bluetooth HCI captures (the captures themselves aren't in the repo) |
Plug the pad in over USB and close KuSuite (Windows lets only one app use a MIDI port at a time).
python p16_rgb.py --anim rainbow --port "P-16"
Or serve the web painter and open http://localhost:8016 in Chrome:
cd web
python -m http.server 8016 --bind 127.0.0.1
Colors are sent live with the 'Q' command and are not written to the pad's memory.
Click or drag across the pads to paint them, or pick one of 12 animations. Pad hits from the P16 show up under Incoming MIDI and flash the pad white.
| Drawing | Fire animation |
|---|---|
![]() |
![]() |
- Pad index 0 is the bottom-left pad; colors go on the wire as G, R, B.
- Over USB the pads send notes 36–51, bottom-left first (tested in one bank/preset).
- Live colors work over USB (port "P-16") and Bluetooth (service 0xAE40).



