public class DmxP512
extends java.lang.Thread
Constructor and Description |
---|
DmxP512(processing.core.PApplet papplet)
Uses default universe size(512) and buffered sending strategy
|
DmxP512(processing.core.PApplet papplet,
int universeSize)
Uses default buffered sending strategy
|
DmxP512(processing.core.PApplet papplet,
int universeSize,
boolean buffered)
Creates the dmxP512 object.
|
Modifier and Type | Method and Description |
---|---|
void |
reset()
reset all channels to zero
|
void |
run()
background thread taking care of sending the DMX frames.
|
boolean |
set(int channel,
int value)
Write value to the channel, if the value is different from the last written.
|
boolean |
set(int channel,
int[] values)
Write values to channels, starting the with the channel specified and incrementing it for each value of values.
|
void |
setupDmxPro(java.lang.String dmxProSerialPortName)
set up the DMX output for use with DMX USB Pro Enttenc interface.
|
void |
setupDmxPro(java.lang.String dmxProSerialPortName,
int dmxProBaudRate)
set up the dmx output for use with DMX USB Pro Enttenc interface
|
void |
setupLanbox(java.lang.String lanboxIP)
Set up the DMX output for use with Lanbox device.
|
void |
setupLanbox(java.lang.String lanboxIP,
int lanboxPort)
Set up the DMX output for use with Lanbox device.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public DmxP512(processing.core.PApplet papplet)
papplet
- : daddypublic DmxP512(processing.core.PApplet papplet, int universeSize)
papplet
- : daddyuniverseSize
- : size of the dmx universe (number of channels)public DmxP512(processing.core.PApplet papplet, int universeSize, boolean buffered)
papplet
- : daddyuniverseSize
- : size of the DMX universe (number of channels)buffered
- : use a buffer before sending. if false frames are sent directly.public void setupDmxPro(java.lang.String dmxProSerialPortName)
dmxProSerialPortName
- : port name com1 or "/dev/stxx" on unix,
"/dev/tty.usbserial-ENQ9C839" on mac, "COM4" on windows. keep in mind that case in important (COM4 and not com4).
if you see null pointer exceptions during sending of serial messages, mostlikely you entered the serial port name wrong.public void setupDmxPro(java.lang.String dmxProSerialPortName, int dmxProBaudRate)
dmxProSerialPortName
- : port name com1 or "/dev/stxx" on unix,
"/dev/tty.usbserial-ENQ9C839" on mac, "COM4" on windows. keep in mind that case in important (COM4 and not com4).
if you see null pointer exceptions during sending of serial messages, mostlikely you entered the serial port name wrong.dmxProBaudRate
- : serial port speedpublic void setupLanbox(java.lang.String lanboxIP)
lanboxIP
- : IP of the lanbox device. i could not find how to change the lanbox ip, the on i received was set on 192.168.1.77.public void setupLanbox(java.lang.String lanboxIP, int lanboxPort)
lanboxIP
- : IP of the lanbox device. i could not find how to change the lanbox ip, the on i received was set on 192.168.1.77.lanboxPort
- : udp port number, in case it is not matching the default port number.public void reset()
public boolean set(int channel, int value)
channel
- value
- public boolean set(int channel, int[] values)
channel
- : first channelvalues
- public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread