Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

7-segment

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

7-segment

Node JS helper to manage a single digit 7-segment display

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 20 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc