Skip to main content

Python client for ZMKX

Project description

zmkx-sdk .github/workflows/build.yml

pypi downloads license issues stars commits

zmkx.app 的 Python 实现,包含一个供二次开发的库和一个简单的 CLI 客户端。

安装

需要 Python 3.8 以上。

pip3 install -U zmkx

快速上手

本仓库提供了一个最简单的 examples/set_image.py 演示换图功能:

python3 examples/set_image.py 你的图片.jpg

命令行

本仓库实现了一个命令行工具 zmkx 来操作设备,命令格式如下:

zmkx [-s SERIAL] command ...

完整命令说明请参考 zmkx -h

列出设备

$ zmkx list
* HelloWord HW-75 Dynamic (序列号: 34314704001A002B)
* HelloWord HW-75 Keyboard (序列号: 55895648066BFF53)

监控电机状态

$ zmkx knob --monitor
控制模式: 角度 | 当前角度:  23.7° | 当前速度:   -0.01 rad/s | 目标角度:  30.6° | 目标速度:    1.76 rad/s | 目标电压:   0.035 V

换图

$ zmkx eink --set 图片.jpg --dither

相关链接

协议

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zmkx-0.3.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file zmkx-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: zmkx-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for zmkx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe493d309e31174357a59945ebc3e1989f8fc8c4a4a3243992127766ee2adc1
MD5 15322b14493861df3ddbd4d73cfa68dd
BLAKE2b-256 888e4d1c5377e292f34e880f20a329f426c9b2bbfb8ce4e4e2ed86a1601b3d2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page