0.5.9 • Published 2 years ago

@laser-dac/lasercube-wifi v0.5.9

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

@laser-dac/lasercube-wifi

This package makes Laser DAC compatible with the LaserCube Wifi.

yarn add @laser-dac/lasercube-wifi
npm i @laser-dac/lasercube-wifi

Many thanks to @s4y for deciphering the LaserOS demo and porting it to Python.

Usage

import { DAC } from '@laser-dac/core';
import { LasercubeWifi } from '@laser-dac/lasercube-wifi';

const dac = new DAC();
dac.use(new LasercubeWifi());
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.5.9

2 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.0

3 years ago