1
0
Fork 0
mirror of https://github.com/moritzruth/node-enttec-open-dmx-usb.git synced 2025-04-21 07:41:22 +02:00

Add Channel value checker

This commit is contained in:
Andréas HANSS 2023-05-29 12:05:59 +02:00
parent 708fa71a03
commit 28cfe03871

View file

@ -125,6 +125,15 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter<Events> {
} 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