webduino-bit-module-led-matrix

0.1.4 • Public • Published

webduino-bit-module-led-matrix

Module for Webduino:bit LED Matrix.

⚠️ Note

This module may not works in most scenario since it uses non-standard field type.

Installation

bower

bower install https://github.com/webduinoio/webduino-bit-module-led-matrix.git

Node.js

$ npm install webduino-bit-module-led-matrix

Usage

let webduino = require('webduino-js');
require('webduino-bit-module-led-matrix')(webduino);
 
const opts = {
  board: 'Bit',
  device: 'device_id',
  transport: 'mqtt'
};
  
let board = new webduino.board[opts.board](opts);
 
board.once(webduino.BoardEvent.READY, (board) => {
  board.samplingInterval = 250;
  const matrix = new webduino.module.Matrix(board, 4, 25);
  matrix.setCharacter('1', '#ffff66');
});

License

This project is licensed under the MIT license, see LICENSE for more information.

Package Sidebar

Install

npm i webduino-bit-module-led-matrix

Homepage

webduino.io

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

26.7 kB

Total Files

18

Last publish

Collaborators

  • oxxo.studio
  • shengyuan
  • webduino-io