Current collected state Current
Observed since 20 Oct, 21:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
7-segment
Node JS helper to manage a single digit 7-segment display
A small library that controls a single digit 7-segment display.
npm install 7-segment

var segment = require('7-segment');
var draw = new segment(0, 7, 5, 4, 1, 2, 3, 6); // OR your own wiring options
draw.display('0'); // will display 0 on the 7-segment display
draw.display('9'); // will display 9 on the 7-segment display
draw.display('.'); // will display . on the 7-segment display
When using this library you must run Node JS as sudo.
sudo nodejs index.js
This is a requirement of the Wiring-Pi library.
Open for improvements, create a pull request on GitHub.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
wiring-piEnvironment{
"local_name": "wiring-pi",
"alias": false,
"peer_metadata": null
} | 2.1.1 | runtime |
Source distribution
{
"shasum": "9c9fc1bde310d14e1f91808d0b1a8342f322b265",
"tarball": "https://registry.npmjs.org/7-segment/-/7-segment-0.0.4.tgz",
"integrity": "sha512-73xE663FhswXc7+c4KQvOsttVDlExJCvhTmE+4DG1t2DgPNwdMdWbwoZlUooGCK3RtvcAwc1zukvjE3ajMzLXw==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDNTgyRUZcrGT4W7mxMntZcpSMyAKDZinvOlippY5UvowIgevBePnNflSYDWj8Ps6u+UnYNxUwICIsINGQNrQ3vez0="
}
]
}Observed since 20 Oct, 21:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:2e741adf07f8f90f3263c40e6d2bf2b68548b255bac4fcae33ea5a2071bc464a