Skip to main content

DMX USB Pro compatible controller

Project description

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 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

dmxpy -p COM2 -l 200 --demo

For more specific use cases use the DmxPy module

To import

from dmxpy import DmxPy

To initialize

dmx = DmxPy('serial port')

where 'serial port' is where your device is located, .e.g, /dev/ttyUSB1 or COM3

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!

Project details


Download files

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

Source Distribution

DmxPy-0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DmxPy-0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file DmxPy-0.2.tar.gz.

File metadata

  • Download URL: DmxPy-0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for DmxPy-0.2.tar.gz
Algorithm Hash digest
SHA256 d428e3a88e48db3fb882852889f6f8e9e8bf06726b58ebd0272fa3d4e6378c04
MD5 a1a0c9965bec1b2d74ad101343ce185b
BLAKE2b-256 d86083c0fa0121a8a77202c7937a128dfe0934c136abf5793c58d7340db4aacd

See more details on using hashes here.

File details

Details for the file DmxPy-0.2-py3-none-any.whl.

File metadata

  • Download URL: DmxPy-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for DmxPy-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9285ed289014841f251dbbf48900db9dbb5870a048c658406064c1450207fb48
MD5 bf7ad9cc7a05e3cf88298ecf7cfdd513
BLAKE2b-256 d6dd60d21b063d25a95fdef81c3e815b8702b8e55a52d6db49015df9a4ba5d9f

See more details on using hashes here.

Supported by

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