Nanoprogrammed Penultimate Musicianship

npm

Need private packages and team management tools?Check out npm Orgs. »

wemos-led-matrix

1.0.4 • Public • Published

wemos-led-matrix-js

JS lib for Wemos LED Matrix Shield

Example for Espruino

var LedMatrix = require('https://raw.githubusercontent.com/jekill/wemos-led-matrix-js/master/dist/led-matrix.js').LedMatrix;
 
var leds = Graphics.createArrayBuffer(8,8,1,{
  zigzag: false,
  vertical_byte: true
}); 
var matrix = new LedMatrix(5);
var x;
 
setInterval(function(){
  leds.clear();
  x = x === 1 ? 2 : 1;
  leds.drawString(":)", 0, x);
  matrix.sendBytes(leds.buffer);
}, 1000);

install

npm i wemos-led-matrix

Downloadsweekly downloads

7

version

1.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability