0.4.2 • Published 2 years ago

@laser-dac/laserdock v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@laser-dac/laserdock

This package makes Laser DAC compatible with the Laserdock. Currently macOS + Windows only.

Only works for the USB version of the Laserdock / Lasercube (1W and 2W)! See also Lasercube WiFi DAC.

yarn add @laser-dac/laserdock
npm i @laser-dac/laserdock

Usage

import { DAC } from '@laser-dac/core';
import { Laserdock } from '@laser-dac/laserdock';

const dac = new DAC();
dac.use(new Laserdock());
const started = await dac.start();
if (started) {
  const pps = 30000; // points per second
  // draw a horizontal red line from left to right in the center
  // @laser-dac/draw can help you with drawing points!
  const scene = {
    points: [
      { x: 0.1, y: 0.5, r: 1, g: 0, b: 0 },
      { x: 0.9, y: 0.5, r: 1, g: 0, b: 0 },
    ],
  };
  dac.stream(scene, pps);
}

See for more usage info and examples the Laser DAC project on GitHub.

0.4.2

2 years ago

0.4.1

3 years ago

0.4.0

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago