Skip to main content

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

Metadata

Release files for zmkx 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for zmkx 0.3.0
File Interpreter ABI Platform
zmkx-0.3.0-py3-none-any.whl Python 3 none any Details

Release files / zmkx-0.3.0-py3-none-any.whl

Download URL zmkx-0.3.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfe493d309e31174357a59945ebc3e1989f8fc8c4a4a3243992127766ee2adc1
BLAKE2b-256 checksum
How to use checksums
888e4d1c5377e292f34e880f20a329f426c9b2bbfb8ce4e4e2ed86a1601b3d2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page