Catalog npm
Back to packageRELEASE DETAILS

0.1.1

npm

8x8matrix

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

8x8adafruitgpioledmatrixpiraspberrysimple
Published16 Sept 2018
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
{
  "shasum": "b80573f500f9063eaa1cc7bda59028ca22608f8b",
  "tarball": "https://registry.npmjs.org/8x8matrix/-/8x8matrix-0.1.1.tgz",
  "integrity": "sha512-gS2lpDnzgnQH2XLQsCtoTUwMs0LWsd4qJmIH/OblGa8GqOCKd+hXKZld0h6PnSnpRgiE5Ws8qTRK8HSzH4bRJQ==",
  "fileCount": 5,
  "unpackedSize": 4203,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnaN7CRA9TVsSAnZWagAA8VsP/3c3yje5l3mzSXycRwn9\nCVQMgLv9KWZeB30Br25X4r7ACGr8GTtnRVtHjTjy0uFICGtYJCoBktoJZamu\nqHBXTYN5jv446ceDT72TVuZSl+q0T1FzwKMzz/DjPzQ9hniARDvNPIf39Pac\nZbm1FSEJeawkoOU/WVBcUbiqScpS7U7Foj8mpgLSvsGcgawqm6boQXCaS/9p\nmebQsyZsPSmZB4dBva9iyizEgcQ/w0lLq8B47z9r1daM8kzVwAlRhLpdlhkE\nGZxWg3G0QrfMZHToga4vpvgX/Wp8kWT9rS7cZZV8vXSYFH4u7X/QYwoOIbSt\nS+5uv+fBAyhxpXgxTkyuouAdxZ6gaI+R3M1Pgg6MX/BQkk2fNvhzHShj67sr\n902gFSQLDOT4okT/7Z/4kNm85c6sl44HqDBXiw98phtloSQyavOgeTL3iaG6\n52MkBwd8mdkHWHzlSQd6Vr8KGvSGddIbo1vVWoOfQokZ3mqkVASMIGm5GVHE\neOf4xKCAeD8HiUGuDsdQFbKJgbK9iim/2wbo9HunKCs4GfIVRE7PLyc1CB9o\n1qtntqpoeNUtWj1dtz1MvHSKBD2w3ARSsnm6pE2vxh2XCgoWi51nRFux0pri\n4vDEtK003lB6lQHhIfVrSx22jrZHAtIZeDaRz0BPrdcS93lfO5ch5DLYhKKH\n0WRm\r\n=BqhW\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCOGKd3zC2gVSyedTWC8ZJ3W/PBLrY3m/o5gNjd4Vl9iwIhAMGatFzqnDhUwjzsYrK4CIaH1WiwhmnrGuCUyK6GPsk2"
    }
  ]
}

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:403cbe154dbaeb26274e58882bba7aea30ac46310c6c5ed2f20ede65ad419da3

Other collected versions

0.1.417 Mar0.1.316 Sept0.1.216 Sept0.1.016 Sept0.0.115 JulView all collected versions →