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);

Package Sidebar

Install

npm i wemos-led-matrix

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

23.6 kB

Total Files

12

Last publish

Collaborators

  • jeka.ru