diff --git a/src/index.ts b/src/index.ts index a7c246a..d0277e9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -125,6 +125,15 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter { } else throw new TypeError("data must be of type Buffer, Object or Array.") } + /** + * Return the current buffer value for a given channel (used to animations). + * @param channel + * @returns + */ + getChannelValue(channel: number): number { + return this.buffer[channel] + } + /** * @returns A Promise resolved when the whole universe was sent. * @private