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:
parent
708fa71a03
commit
28cfe03871
1 changed files with 9 additions and 0 deletions
|
@ -125,6 +125,15 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter<Events> {
|
||||||
} else throw new TypeError("data must be of type Buffer, Object or Array.")
|
} 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.
|
* @returns A Promise resolved when the whole universe was sent.
|
||||||
* @private
|
* @private
|
||||||
|
|
Loading…
Add table
Reference in a new issue