🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

@laser-dac/laserdock

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laser-dac/laserdock

Laserdock laser interface for Node.js

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
2
Created
Source

@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.

Keywords

laserdock

FAQs

Package last updated on 13 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts