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] a498556f89
Bump eslint from 7.12.0 to 7.12.1
Bumps [eslint](https://github.com/eslint/eslint) from 7.12.0 to 7.12.1.
- [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.12.0...v7.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-28 15:48:05 +00:00
src Rewrite using TypeScript and Pika Pack 2020-08-04 02:06:34 +02:00
.eslintrc.json Rewrite using TypeScript and Pika Pack 2020-08-04 02:06:34 +02:00
.gitignore Rewrite using TypeScript and Pika Pack 2020-08-04 02:06:34 +02:00
.nvmrc Rewrite using TypeScript and Pika Pack 2020-08-04 02:06:34 +02:00
LICENSE Initial commit 2019-12-26 13:40:19 +01:00
package.json Bump typescript from 3.9.7 to 4.0.2 2020-08-21 18:07:39 +00:00
README.md Update README.md 2020-09-19 15:17:47 +02:00
tsconfig.json Rewrite using TypeScript and Pika Pack 2020-08-04 02:06:34 +02:00
yarn.lock Bump eslint from 7.12.0 to 7.12.1 2020-10-28 15:48:05 +00:00

node-enttec-open-dmx-usb

A Node.js library for interacting with 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 easy to understand, 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]));
})();