JSPM

ledpanel

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q39780F
  • License GPL-3.0

Control Adafruit 8x8 bicolor led Panel on the Raspberry Pi

Package Exports

  • ledpanel

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ledpanel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.