Catalog npm
Back to packageRELEASE DETAILS

0.1.4

npm

8x8matrix

A simple node.js-based helper for the Raspberry Pi and the Adafruit 8x8 Matrix

8x8adafruitgpioledmatrixpiraspberrysimple
Published17 Mar 2019
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

Adafruit 8x8-Matrix with NodeJS

Control your Adafruit 8x8 Matrix with NodeJS. Your nodejs script have to run as root.

Setup

$ npm i 8x8matrix
const Matrix = require('8x8matrix');

let matrix = new Matrix();
matrix.writeArray(matrix.smily);

Options

let matrix = new Matrix({
	brightness: 15,
	slaveAddress: 0x70,
	bautrate: 10000
});

API

Pixels can be written by a simple js-array with 64 objects.

var smily = [
	0,0,1,1,1,1,0,0,
	0,1,0,0,0,0,1,0,
	1,0,1,0,1,0,0,1,
	1,0,1,0,1,0,0,1,
	1,0,0,0,0,1,0,1,
	1,0,1,1,1,0,0,1,
	0,1,0,0,0,0,1,0,
	0,0,1,1,1,1,0,0
];

matrix.writeArray(smily);

/**
  * Set brightness of all LED
  * Values: 1 (very low) to 15 (very bright)
  */

matrix.setBrightness(8);

/**
  * Set first top-left LED to on
  * matrix.setLED(x, y, true/false);
  */

matrix.setLED(0, 0, 1);

Test

$ sudo node test.js

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
rpio
Environment
{
  "local_name": "rpio",
  "alias": false,
  "peer_metadata": null
}
^0.9.22runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-CuV0Gr2Q4VGA77zly2qn90QvG600L9yBzzyL/UaCfHT+sZnuCST9w8C0+6Sph8chYE4DWAUr1xVkmub8fZ2EqA==",
  "shasum": "991d9a835d577b354d6fa4f385eaeb818dbebd56",
  "tarball": "https://registry.npmjs.org/8x8matrix/-/8x8matrix-0.1.4.tgz",
  "fileCount": 4,
  "unpackedSize": 4325,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjp7yCRA9TVsSAnZWagAAlwcQAIF7kHFrbqleV9pOZsvb\n5VpJstdJrL/rF4xdUofE5tvT5FBdd1BFZk29i00CK3+cOcNEM6zGmuF2Yq6i\nLRb0d9j+Y1o1yexsP+Qt61wfZ88IHQBNKdzAyZfS8qg7RH3Tli5C3h8wJ3xE\nIUXwjhtAwFHQrEAPBWP8CgxVr+D5gEoSKxs4VBblf6HG3dGYJZUhWXPr7oy9\nOjA+tThXW29R/voHrNHkpy6OEPa4aldol/8MhX4SvtdXvC3TARDSj0jGxeNY\nrkAx8kXGToFfTmQtbOXRZI1VZcZFFSgg6/0XNDd/HPniUwiZVlHWSPuFlOcl\neeA5u5oaqCO0v6kLUV7WmfceLBfiBcOvvBWz9iVJETkuMtJwT2h+YlcJWipc\nB2v23xQH2SnDbxJ/xYInN5fHbelySJOKiGWFhNdNNgbEeOydN7QFpYPaFXGL\nzFM3ExUTyQG6V+VVCFk327/gq+AlymMxHtPSaGdesdInpQ9URILKlMI10d3Y\n2xdFQvmi334G2X0xAyJ4WCpmIa0oTSyy7l66qNyweDSAMyrYUFdznuJdjNgS\nrhhI9xnhbzMBZPIMT57/0Qi5nJ2xq75YQtKdXr6jkOcaE7/xSWY4YtuhKXsS\nd5n4NwUMN82IpMz2+px1IEL1S/aj988xk1Hmm4kJ+mo3RuQX00zVtzQOBwBp\nWRko\r\n=he48\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIF+dRhiEU9c52f6rPa8oR+W+1mjPkLNOQk/a0AonfFnCAiEAjn5ckxlz/2Mz/s1vToW9f5l/Zx7oAg5K3UcucO+hK2A="
    }
  ]
}

Repository

PENDING
nerdchandise/adafruit-8x8-matrix-with-nodejs

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b142ca488644cd367497b22d271ccc3abf50a8b942642d2095c54ffd2f0e6989

Other collected versions

0.1.316 Sept0.1.216 Sept0.1.116 Sept0.1.016 Sept0.0.115 JulView all collected versions →