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-preview[bot] f72f0d3365
Bump babel-eslint from 10.0.3 to 10.1.0
Bumps [babel-eslint](https://github.com/babel/babel-eslint) from 10.0.3 to 10.1.0.
- [Release notes](https://github.com/babel/babel-eslint/releases)
- [Commits](https://github.com/babel/babel-eslint/compare/v10.0.3...v10.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-03 11:24:57 +00:00
.eslintrc.json Add EnttecOpenDMXUSBDevice class 2019-12-26 15:37:02 +01:00
.gitignore Add EnttecOpenDMXUSBDevice class 2019-12-26 15:37:02 +01:00
index.js Add EnttecOpenDMXUSBDevice class 2019-12-26 15:37:02 +01:00
LICENSE Initial commit 2019-12-26 13:40:19 +01:00
package.json v1.0.1 2019-12-26 15:46:12 +01:00
README.md Fix typo in README.md 2019-12-26 15:45:40 +01:00
yarn.lock Bump babel-eslint from 10.0.3 to 10.1.0 2020-08-03 11:24:57 +00:00

node-enttec-open-dmx-usb

A Node.js library for sending DMX data through the Enttec Open DMX USB Interface

Installation

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

Usage

All functions are documented using JSDoc and the code is not uglified, so feel free to explore it.

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]));
})();