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
💡 A Node.js library for interacting with the Enttec Open DMX USB Interface
Find a file
dependabot[bot] d5d67a5fcd
Bump eslint from 7.25.0 to 7.26.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.26.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 05:12:39 +00:00
.github Setup Dependabot 2021-02-26 10:43:26 +01:00
src No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
.eslintrc.json No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
.gitignore No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
.nvmrc Rewrite using TypeScript and Pika Pack 2020-08-04 02:06:34 +02:00
LICENSE No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
package.json v3.0.0 2021-02-26 10:41:37 +01:00
README.md No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
tsconfig.json No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
yarn.lock Bump eslint from 7.25.0 to 7.26.0 2021-05-10 05:12:39 +00:00

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.