Skip to content

๐Ÿ”Œ A Node.js library for interacting with the Enttec Open DMX USB Interface

License

Notifications You must be signed in to change notification settings

klmz/node-enttec-open-dmx-usb

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

node-enttec-open-dmx-usb ๐Ÿ”Œ

A Node.js library for interacting with the Enttec Open DMX USB Interface

Only tested on Windows, but as it uses serialport under the hood, it should also work in these environments.

Install

npm

Minimum required Node.js version is v14.0.0.

yarn add enttec-open-dmx-usb
# or
npm install enttec-open-dmx-usb

Usage

View documentation on jsdocs.io

import { EnttecOpenDMXUSBDevice as DMXDevice } from "enttec-open-dmx-usb";

(async () => {
  const device = new DMXDevice(await DMXDevice.getFirstAvailableDevice())

  device.setChannels({
    1: 0xFF,
    2: 0x44
  })

  // same as
  device.setChannels([0xFF, 0x44])

  // same as
  device.setChannels(Buffer.from([0xFF, 0x44]))
})()

Events

ready - startSending can be called.

error - An error occurred.

About

๐Ÿ”Œ A Node.js library for interacting with the Enttec Open DMX USB Interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%