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
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1. **This update includes a security fix.** - [Release notes](https://github.com/sindresorhus/dot-prop/releases) - [Commits](https://github.com/sindresorhus/dot-prop/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> |
||
---|---|---|
src | ||
.eslintrc.json | ||
.gitignore | ||
.nvmrc | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
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 not uglified and 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]));
})();