Theater DMX Host Interface

theater.dmxusbpro

dmxusbpro.py

Class to manage a connection to a serial-connected Enttec DMXUSB Pro interface. Requires pySerial and numpy.

class theater.dmxusbpro.DMXUSBPro(port=None, verbose=False, debug=False, universe_size=25, **kwargs)[source]

Class to manage a connection to a serial-connected Enttec DMXUSB Pro interface. This only supports output.

Parameters:
  • port – the name of the serial port device

  • verbose – flag to increase console output

  • debug – flag to print raw inputs on sconsole

  • kwargs – collect any unused keyword arguments

close_serial_port()[source]

Shut down the serial connection, after which this object may no longer be used.

flush_serial_input()[source]

Clear the input buffer.

is_connected()[source]

Return true if the serial port device is open.

open_serial_port()[source]

Open the serial connection to the controller.

send_universe()[source]

Issue a DMX universe update.

set_serial_port_name(name)[source]

Set the name of the serial port device.