No description
Find a file
2026-11-20 12:18:36 +01:00
examples init 2026-11-20 12:18:36 +01:00
gmk87 init 2026-11-20 12:18:36 +01:00
tests init 2026-11-20 12:18:36 +01:00
70-gmk87.rules init 2026-11-20 12:18:36 +01:00
LICENSE init 2026-11-20 12:18:36 +01:00
pyproject.toml init 2026-11-20 12:18:36 +01:00
README.md init 2026-11-20 12:18:36 +01:00

gmk87 — open-source driver for the Zuoya GMK87 screen

Put any image, GIF or text on the GMK87's 240x135 screen from Linux. Pure Python + Pillow, talks to /dev/hidraw* directly.

Setup

sudo cp 70-gmk87.rules /etc/udev/rules.d/
sudo udevadm control --reload && sudo udevadm trigger
pip install -e .          # or run with: python3 -m gmk87 ...

Usage

gmk87 info                                   # read current screen config
gmk87 sync-time                              # set the built-in clock
gmk87 text "Hello\nworld" --color cyan       # quick text
gmk87 upload --slot0 cat.gif --slot1 "text:hi" --show slot0
gmk87 show clock|slot0|slot1                 # switch view
gmk87 preview "text:Hi" -o out.png           # render without the keyboard

Notes:

  • Connect by USB cable. Every upload rewrites both slots (protocol limitation); an omitted slot is blank.
  • Max 90 frames total. GIF delay min 60 ms.
  • Uploads write the keyboard's flash — don't loop them every few seconds.

Credits

Protocol from USB captures by ikkentim/gmk87-usb-reverse and codedgar/gmk87-node (MIT). This is an independent reimplementation.

License

MIT