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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dmx485-1.2.1.tar.gz | 2.5 kB | Without provenance | Details for dmx485-1.2.1.tar.gz |
Release files / dmx485-1.2.1.tar.gz
| Download URL | dmx485-1.2.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac51cb3892625427408a59f03f5da73f77c6aa9fb6189507f305c72428dada11
|
|
BLAKE2b-256 checksum How to use checksums |
61cd9a40d67cac651448d86bf6e8e3a13df5d08c1a7b3980f47945628a14e807
|
| 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
|
Security for dmx485 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.