ledpanel

1.0.4 • Public • Published

ledpanel

ledpanel allows you to control the Bicolor 8x8 LED matrix backpack from Adafruit

install

With npm

npm install ledpanel

api

Color the matrix

ledpanel.matrix(matrix, callback)

Color one pixe

ledpanel.printPixel(x,y, callback)

Clear all

ledpanel.clear(callback)

examples

var ledpanel = require('ledpanel')

var matrix = [[0, 0, 0, 0, 0, 0, 0, 0,],
                [1, 1, 1, 1, 1, 1, 1, 1],
                [1, 1, 1, 1, 1, 1, 1, 1],
                [1, 1, 1, 1, 1, 1, 1, 1],
                [1, 1, 1, 1, 1, 1, 1, 1],
                [1, 1, 1, 1, 1, 1, 1, 1],
                [1, 1, 1, 1, 1, 1, 1, 1],
                [1, 1, 1, 1, 1, 1, 1, 1]]

ledpanel.matrix(matrix, function(err){
    if(err) console.log(err)
    console.log('Matrix Printed')
})

ledpanel.printPixel(0,0)

ledpanel.clear()

Contact

This repo is shared with ❤️ from Netbeast IoT regular job translating messages from different devices and aggregating data.

Package Sidebar

Install

npm i ledpanel

Weekly Downloads

0

Version

1.0.4

License

GPL-3.0

Last publish

Collaborators

  • netbeast.staff
  • luisfpinto