JS lib for Wemos LED Matrix Shield
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);