1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
DMX485
Requirements
This script requires pyserial.
pip install --user pyserial
Installation
Install from pip:
pip install --user dmx485
Install from source:
python setup.py install
Hardware Compatibility
This should work with any FTDI RS485 dongle or any of the similar knock-offs.
FTDI to RS485 cheap dongle:
Hardware Example
https://stevenbreuls.com/2013/05/diy-usb-dmx-dongle-interface-for-under-10/
Usage
First create an instance of dmx.DMX_Serial(), then start the background thread. Once that is running the dongle will begin sending a full DMX universe. To change the value of a channel use set_data(). This function takes a bytes() object with 512 bytes, each representing a single DMX channel. It will be sent on the next DMX refresh.
import time
import dmx
sender = dmx.DMX_Serial()
sender.start()
for i in range(200):
if i % 2:
sender.set_data(bytes((255,)*512))
else:
sender.set_data(bytes((0,)*512))
time.sleep(1)
Metadata
Release files for dmx485 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dmx485-1.2.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dmx485-1.2-py3.7.egg | Legacy Egg format | - | - | Details |
Total release size: 6.3 kB
Release files / dmx485-1.2.tar.gz
| Download URL | dmx485-1.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
953e87b4dd1a15ad5d171158035f4ac97d7c8d16114741c0a3dddd462d30911a
|
|
BLAKE2b-256 checksum How to use checksums |
b01cfea5505439d9b2a563cf893e39db0695b660bff413566f877cb44af00159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15rc1
|
Release files / dmx485-1.2-py3.7.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | dmx485-1.2-py3.7.egg |
|---|---|
| Size | 3.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
cff1476cee3cbeeb42f0bcca06fe840a4dfec33e98f271ee5693ffa1e50f4e91
|
|
BLAKE2b-256 checksum How to use checksums |
8e67c942e11f32dcf7c141df728209c32c8d346a8c5d6002e1bcef2eeafa5059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|