moritzruth / node-enttec-open-dmx-usb

💡 A Node.js library for interacting with the Enttec Open DMX USB Interface
MIT License
14 stars 5 forks source link

What the Windows version supported? #76

Closed JohnDeereLiebhaber closed 3 years ago

JohnDeereLiebhaber commented 3 years ago

Is Windows 10 supported mit this code?

Thank you

moritzruth commented 3 years ago

As the hardware communication is handled by serialport which supports Windows 10, it should work.

JohnDeereLiebhaber commented 3 years ago

thank you i was able to install everything successfully now i just ask one question i use the function device.startsending you have code examples i don't understand how it works (i'm just starting out with programming)

Thanks in advance

moritzruth commented 3 years ago

This is the example from README.md:

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

If you don't understand it, you should learn the basics of JavaScript, Node.js and DMX first. There are many resources freely available on the internet.