https://github.com/netbeast/ledpanel
NPM package that allows you to control the bicolor 8x8 Adafruit led panel
https://github.com/netbeast/ledpanel
Last synced: 11 months ago
JSON representation
NPM package that allows you to control the bicolor 8x8 Adafruit led panel
- Host: GitHub
- URL: https://github.com/netbeast/ledpanel
- Owner: netbeast
- License: mit
- Created: 2016-02-12T14:53:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T11:52:14.000Z (over 10 years ago)
- Last Synced: 2025-05-29T23:42:04.765Z (about 1 year ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
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
* Visit our site [https://netbeast.co](https://netbeast.co)
* Mail us: staff [at] netbeast.co
* Report a bug or enter discussion at [issues](https://github.com/netbeast/colorsys/issues)
* Other resources: [Docs](https://github.com/netbeast/docs/wiki), Netbeast [API](https://github.com/netbeast/API)
This repo is shared with :heart: from Netbeast IoT regular job translating
messages from different devices and aggregating data.