dmx_usb_pro 1.0.0 copy "dmx_usb_pro: ^1.0.0" to clipboard
dmx_usb_pro: ^1.0.0 copied to clipboard

A Dart driver package for ENTTEC DMX USB PRO running on Windows

example/dmx_usb_pro_example.dart

import 'dart:typed_data';

import 'package:dmx_usb_pro/dmx_usb_pro.dart';

void main() {
  final dmxUsbPro = DmxUsbPro.open(0);
  print(dmxUsbPro.version);
  print(dmxUsbPro.info);

  dmxUsbPro.setTimeouts(10, 100);
  dmxUsbPro.purge(DmxUsbPro.RX);

  // just a test for my purpose
  final buf = Uint8List(75);
  buf[0] = 0;
  for (int i = 0; i < 10000; i++) {
    buf[1] = i;
    buf[2] = i;
    buf[3] = i;
    dmxUsbPro.write(EnttecProLabels.SET_DMX_TX_MODE, buf);
  }
}
1
likes
140
pub points
24%
popularity

Publisher

unverified uploader

A Dart driver package for ENTTEC DMX USB PRO running on Windows

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi

More

Packages that depend on dmx_usb_pro