A barebones data structure for holding a DMX universe. See SimpleEnttecDMXPro for usage example.
size |
Size of universe. default (and max) is 512. Resizing flushes the universe. |
header |
prepend universe by this. will be converted into 8-bit int. |
footer |
append universe by this. will be converted into 8-bit int. |
returns 8-bit raw array ready to send over via DMX device.
header resp. footer to be integrated into raw data structure. Needs to be an array of integers.
empty internal state.
add values to the universe.
channel |
start channel |
vals |
values to be written. Will be cropped to size. |
get current values from the universe.
channel | |
range |
set complete state.
vals |
an array of values. Will be cropped to size. |