Comparing version 0.0.3 to 0.0.4
'use strict'; | ||
var wpi = require('wiring-pi'); | ||
/** | ||
@@ -16,5 +14,3 @@ * Controls single digit 7-segment display | ||
*/ | ||
var draw = function(configA, configB, configC, configD, configE, configF, configG, configDP) { | ||
wpi.setup('wpi'); | ||
var draw = function(wpi, configA, configB, configC, configD, configE, configF, configG, configDP) { | ||
var ledOn = 1; | ||
@@ -21,0 +17,0 @@ var ledOff = 0; |
{ | ||
"name": "7-segment", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Node JS helper to manage a single digit 7-segment display", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ 7-Segment Display | ||
## Installation | ||
`npm install 7-segment` | ||
npm install 7-segment | ||
@@ -25,4 +25,12 @@ ## Wiring | ||
## 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. |
251575
34
123