wemos-led-matrix
v1.0.4
Published
Wemos led matrix for Espruino
Downloads
14
Readme
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);