No description
- Python 100%
| examples | ||
| gmk87 | ||
| tests | ||
| 70-gmk87.rules | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
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