# eightseg

> Johnny-Five compatible library to control a common anode eight segment display

Latest version **1.0.1** (published 2018-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install eightseg
pnpm add eightseg
yarn add eightseg
bun add eightseg
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-08-18 |
| First published | 2018-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Suz Hinton |
| Maintainers | noopkat |

## Links

- npm: https://www.npmjs.com/package/eightseg
- Repository: https://github.com/noopkat/eightseg
- Homepage: https://github.com/noopkat/eightseg#readme
- Issues: https://github.com/noopkat/eightseg/issues
- npm.io page: https://npm.io/package/eightseg

## Recent versions

- 1.0.1 (latest) — 2018-08-18
- 1.0.0 — 2018-07-18

## README

# eightseg
Johnny-Five compatible library to control a common anode eight segment display

Common cathode support coming soon!

## Usage
```javascript
const five = require('johnny-five');
const Eightseg = require('eightseg');

const board = new five.Board();
board.on('ready', function() {
 // pin array orders segments in clockwise fashion a-g, starting at top, enging at middle segment
 // see: https://en.wikipedia.org/wiki/Seven-segment_display for the a-g diagram of segment order
 const seggy = new Eightseg(five, [2,3,4,5,6,7,8]);
 seggy.display(2);
 setTimeout(() => seggy.clear(), 1000);
});
```

---
_Source: https://npm.io/package/eightseg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
