8x8-matrix

1.0.1 • Public • Published

node-8x8-matrix

Control an 8x8 matrix with node

matrix Image from Adafruit shop https://www.adafruit.com/product/870

Created using run-python

Installation

  1. Install python
  2. Install Adafruit Python LED Backpack
  3. Install 8x8-matrix
$ npm i --save 8x8-matrix

Usage

Load module

const matrix = new (require('8x8-matrix'))

Mark LED to be on or off

// On: x, y, true
matrix.setPixel(0, 0, true)
// Off: x, y, false
matrix.setPixel(1, 0, false)

Write changes to matrix

matrix.writeDisplay()

Turn off all LED's and write changes to matrix

matrix.clear()
matrix.writeDisplay()

Readme

Keywords

none

Package Sidebar

Install

npm i 8x8-matrix

Weekly Downloads

2

Version

1.0.1

License

GPL-3.0

Unpacked Size

37.1 kB

Total Files

4

Last publish

Collaborators

  • simonmeusel