7-segment

0.0.4 • Public • Published

7-Segment Display

A small library that controls a single digit 7-segment display.

Installation

npm install 7-segment

Wiring

7 segement display 7 segement wiring

Usage

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

Important Note

When using this library you must run Node JS as sudo.

sudo nodejs index.js

This is a requirement of the Wiring-Pi library.

Contributing

Open for improvements, create a pull request on GitHub.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    2
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i 7-segment

Weekly Downloads

5

Version

0.0.4

License

MIT

Last publish

Collaborators

  • sketchthat