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.1.tar.gz (1.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.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: DmxPy-0.1.tar.gz
  • Upload date:
  • Size: 1.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.1.tar.gz
Algorithm Hash digest
SHA256 bdae45588914ffc53aece87c55015eadf92123a175a98305657300f447377c19
MD5 a1e538c4f590074bfb484ec68ec9bd98
BLAKE2b-256 0ba69d832130a9ee30f665c759bee440275fcfc2bd2a13fb04ef01d7553487f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DmxPy-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8758bd615a732f4334c984231a12889a2512bee0d16de31abb8a47736254b990
MD5 2791330bc1d0a245c222ceac90f6cb92
BLAKE2b-256 c508cbcd304b590b805b8dd6293ff6df57e32435cd47ce53ec4ef0cf2fd2fbf6

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