enttec-open-dmx-usb
- Version 4.0.1
- Published
- 12.4 kB
- 2 dependencies
- MIT license
Install
npm i enttec-open-dmx-usbyarn add enttec-open-dmx-usbpnpm add enttec-open-dmx-usbOverview
A Node.js library for interacting with the Enttec Open DMX USB interface
Index
Variables
variable PRODUCT_ID
const PRODUCT_ID: string;variable VENDOR_ID
const VENDOR_ID: string;Classes
class EnttecOpenDMXUSBDevice
class EnttecOpenDMXUSBDevice extends EventEmitter<Events> {}constructor
constructor(path: string, startSending?: boolean, usleep?: Usleep);- Parameter path- A path returned by EnttecOpenDMXUSBDevice.listDevices or EnttecOpenDMXUSBDevice.getFirstAvailableDevice. - Parameter startSending- Whether the device should start sending as soon as it is ready. - Parameter usleep- A function blocking the event loop for - nmicroseconds. See the README.md for more information.
method getFirstAvailableDevice
static getFirstAvailableDevice: () => Promise<string>;- Get the path of the first available device. - Throws- When no device is found. 
method listDevices
static listDevices: () => Promise<string[]>;- Get the paths of all available devices. 
method setChannels
setChannels: (    channels: Buffer | number[] | Record<number, number>,    clear?: boolean) => void;- Set channel values. If channels is an Object, the keys are the channel numbers. - Parameter channels- Parameter clear- Whether all previously assigned channels should be set to - 0
method startSending
startSending: (interval?: number) => void;- Start sending. - Parameter interval- The milliseconds between each attempt to send. Most of the time - 0works fine.- Throws- When the device is not ready yet. 
method stopSending
stopSending: () => void;- Stop sending. 
Package Files (1)
Dependencies (2)
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/enttec-open-dmx-usb.
- Markdown[](https://www.jsdocs.io/package/enttec-open-dmx-usb)
- HTML<a href="https://www.jsdocs.io/package/enttec-open-dmx-usb"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
 Package analyzed in 3346 ms.
- Missing or incorrect documentation? Open an issue for this package.
