DmxPy-0.5
توضیحات
DMX USB Pro compatible controller
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DmxPy-0.5 |
| نام | DmxPy |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | itsb |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/itsb/DmxPy |
| آدرس اینترنتی | https://pypi.org/project/DmxPy/ |
| مجوز | MIT License |
## DmxPy - Python Controller for USB - DMX devices
DmxPy is a super-lightweight Python library for controlling any USB-DMX device that is compatible with Enttec's USB DMX Pro, including all Dmxking ultraDMX devices.
DmxPy requires [PySerial](https://pypi.org/project/pyserial/) to work
### There is a console interface for basic sanity testing and validation
For detailed usage instructions
dmxpy -h
To black out (turn off) the lights when the DMX is on port COM4
dmxpy --port COM4 -b
To turn on all the lights at 50% (level 128)
dmxpy -p /dev/ttyUSB2 --level 128 -w
To play the demo light pattern with the default level at 200, auto-detect USB port
dmxpy -l 200 --demo
### For more specific use cases use the DmxPy module
To import
from dmxpy import DmxPy
To initialize
dmx = DmxPy.DmxPy('serial port')
where 'serial port' is where your device is located, .e.g, /dev/ttyUSB1 or COM3
If None, attempt to identify port based on grep expression: hwid, serial number, etc
To set a channel's value
dmx.setChannel(chan, value)
where 'chan' and 'value' are integers representing the respective DMX channels and values to set!
To push dmx changes to device
dmx.render()
You need to call this to update the device!
نیازمندی
| مقدار | نام |
|---|---|
| - | pyserial |
نحوه نصب
نصب پکیج whl DmxPy-0.5:
pip install DmxPy-0.5.whl
نصب پکیج tar.gz DmxPy-0.5:
pip install DmxPy-0.5.tar.gz