Code Monkey home page Code Monkey logo

node-wiring-pi's Introduction

UPDATE

Project now lives here: WiringPi/WiringPi-Node.


Node.js bindings to WiringPi

Install

> npm install wiring-pi

Use

var wpi = require('wiring-pi');

wpi.setup([mode])

wpi.setup();
wpi.setup('gpio');

Valid Modes:

  • wpi: sets up pin numbering with wiringPiSetup
  • gpio: sets up pin numbers with wiringPiSetupGpio
  • sys: sets up pin numbers with wiringPiSetupSys

See WiringPi Pins for the differences in Pin numbering;

wpi.pinMode(pin, mode)

wpi.pinMode(0, wpi.modes.OUTPUT);
  • pin: pin number
  • mode: wpi.modes.INPUT, wpi.modes.OUTPUT, or wpi.modes.PWM_OUTPUT

wpi.digitalWrite(pin, value)

wpi.digitalWrite(0, wpi.HIGH);
wpi.digitalWrite(0, wpi.LOW);
  • pin: pin number
  • value: 0 (wpi.LOW) or 1 (wpi.HIGH)

wpi.digitalRead(pin)

wpi.digitalRead(0);
//=> 1
  • pin: pin number

Wrapped WiringPI calls:

These have the same arguments as their WiringPi counterparts

  • piBoardRev
  • pwmSetRange
  • pwmSetClock
  • pwmWrite

node-wiring-pi's People

Contributors

csquared avatar eugeneware avatar soarez avatar sonnyp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-wiring-pi's Issues

Build problem when installing with [email protected] and [email protected]

Hi guys firstly thank you for creating this awesome library! I have been working on other projects for the last ..errh years.. so came back and wanting to pickup and utilize wiring-pi as a part of a new project that will utilize a raspberry pi. When running npm install wiring-pi --save I end up with an error. Would be cool to see if this could be fixed. If I can help in some other way, just give me a shout-out.

Some info, using Homebrew when installing npm/node (Using latest version as of today), did run brew update before

Might be something as indicated at lines 230

230 error Tell the author that this fails on your system:
230 error     /bin/bash ./install.sh

And again thanks for putting in the work and effort!

Posting full npm-debug.log below, cheers!

/Johan

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/6.3.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'wiring-pi',
1 verbose cli   '--save' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData wiring-pi
8 silly fetchNamedPackageData wiring-pi
9 silly mapToRegistry name wiring-pi
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry   raw: 'wiring-pi',
12 silly mapToRegistry   scope: null,
12 silly mapToRegistry   escapedName: 'wiring-pi',
12 silly mapToRegistry   name: 'wiring-pi',
12 silly mapToRegistry   rawSpec: '',
12 silly mapToRegistry   spec: 'latest',
12 silly mapToRegistry   type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/wiring-pi
14 verbose request uri https://registry.npmjs.org/wiring-pi
15 verbose request no auth needed
16 info attempt registry request try #1 at 12:57:28
17 verbose request id 8827a720cc0d33cd
18 verbose etag "2H6QKDZK0DTTIOO5LZGZKFD4T"
19 http request GET https://registry.npmjs.org/wiring-pi
20 http 304 https://registry.npmjs.org/wiring-pi
21 verbose headers { date: 'Wed, 20 Jul 2016 10:57:12 GMT',
21 verbose headers   via: '1.1 varnish',
21 verbose headers   'cache-control': 'max-age=300',
21 verbose headers   etag: '"2H6QKDZK0DTTIOO5LZGZKFD4T"',
21 verbose headers   age: '294',
21 verbose headers   connection: 'keep-alive',
21 verbose headers   'x-served-by': 'cache-fra1220-FRA',
21 verbose headers   'x-cache': 'HIT',
21 verbose headers   'x-cache-hits': '1',
21 verbose headers   'x-timer': 'S1469012232.619913,VS0,VE0',
21 verbose headers   vary: 'Accept-Encoding' }
22 silly get cb [ 304,
22 silly get   { date: 'Wed, 20 Jul 2016 10:57:12 GMT',
22 silly get     via: '1.1 varnish',
22 silly get     'cache-control': 'max-age=300',
22 silly get     etag: '"2H6QKDZK0DTTIOO5LZGZKFD4T"',
22 silly get     age: '294',
22 silly get     connection: 'keep-alive',
22 silly get     'x-served-by': 'cache-fra1220-FRA',
22 silly get     'x-cache': 'HIT',
22 silly get     'x-cache-hits': '1',
22 silly get     'x-timer': 'S1469012232.619913,VS0,VE0',
22 silly get     vary: 'Accept-Encoding' } ]
23 verbose etag https://registry.npmjs.org/wiring-pi from cache
24 verbose get saving wiring-pi to /Users/johanwedfelt/.npm/registry.npmjs.org/wiring-pi/.cache.json
25 verbose correctMkdir /Users/johanwedfelt/.npm correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly resolveWithNewModule [email protected] checking installable status
39 silly cache add args [ 'wiring-pi', null ]
40 verbose cache add spec wiring-pi
41 silly cache add parsed spec Result {
41 silly cache add   raw: 'wiring-pi',
41 silly cache add   scope: null,
41 silly cache add   escapedName: 'wiring-pi',
41 silly cache add   name: 'wiring-pi',
41 silly cache add   rawSpec: '',
41 silly cache add   spec: 'latest',
41 silly cache add   type: 'tag' }
42 silly addNamed wiring-pi@latest
43 verbose addNamed "latest" is being treated as a dist-tag for wiring-pi
44 info addNameTag [ 'wiring-pi', 'latest' ]
45 silly mapToRegistry name wiring-pi
46 silly mapToRegistry using default registry
47 silly mapToRegistry registry https://registry.npmjs.org/
48 silly mapToRegistry data Result {
48 silly mapToRegistry   raw: 'wiring-pi',
48 silly mapToRegistry   scope: null,
48 silly mapToRegistry   escapedName: 'wiring-pi',
48 silly mapToRegistry   name: 'wiring-pi',
48 silly mapToRegistry   rawSpec: '',
48 silly mapToRegistry   spec: 'latest',
48 silly mapToRegistry   type: 'tag' }
49 silly mapToRegistry uri https://registry.npmjs.org/wiring-pi
50 verbose addNameTag registry:https://registry.npmjs.org/wiring-pi not in flight; fetching
51 verbose get https://registry.npmjs.org/wiring-pi not expired, no request
52 silly addNameTag next cb for wiring-pi with tag latest
53 silly addNamed [email protected]
54 verbose addNamed "2.1.1" is a plain semver version for wiring-pi
55 silly cache afterAdd [email protected]
56 verbose afterAdd /Users/johanwedfelt/.npm/wiring-pi/2.1.1/package/package.json not in flight; writing
57 verbose correctMkdir /Users/johanwedfelt/.npm correctMkdir not in flight; initializing
58 verbose afterAdd /Users/johanwedfelt/.npm/wiring-pi/2.1.1/package/package.json written
59 silly loadAllDepsIntoIdealTree Finishing
60 silly loadIdealTree Finishing
61 silly currentTree [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ ├─┬ [email protected]
61 silly currentTree │ │ │ └── [email protected]
61 silly currentTree │ │ └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ ├── [email protected]
61 silly currentTree │ │ └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ ├── [email protected]
61 silly currentTree │ │ ├── [email protected]
61 silly currentTree │ │ └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├─┬ [email protected]
61 silly currentTree │ │ └─┬ [email protected]
61 silly currentTree │ │   └── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ ├── [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └─┬ [email protected]
61 silly currentTree │   └── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├─┬ [email protected]
61 silly currentTree │ └── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree ├── [email protected]
61 silly currentTree └── [email protected]
62 silly idealTree [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ ├─┬ [email protected]
62 silly idealTree │ │ │ └── [email protected]
62 silly idealTree │ │ └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ ├── [email protected]
62 silly idealTree │ │ └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ ├── [email protected]
62 silly idealTree │ │ ├── [email protected]
62 silly idealTree │ │ └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├─┬ [email protected]
62 silly idealTree │ │ └─┬ [email protected]
62 silly idealTree │ │   └── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ ├── [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └─┬ [email protected]
62 silly idealTree │   └── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├─┬ [email protected]
62 silly idealTree │ └── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree ├── [email protected]
62 silly idealTree └── [email protected]
63 silly generateActionsToTake Starting
64 silly install generateActionsToTake
65 silly generateActionsToTake Finishing
66 silly diffTrees action count 1
67 silly diffTrees add [email protected]
68 silly decomposeActions action count 8
69 silly decomposeActions fetch [email protected]
70 silly decomposeActions extract [email protected]
71 silly decomposeActions test [email protected]
72 silly decomposeActions preinstall [email protected]
73 silly decomposeActions build [email protected]
74 silly decomposeActions install [email protected]
75 silly decomposeActions postinstall [email protected]
76 silly decomposeActions finalize [email protected]
77 silly executeActions Starting
78 silly install executeActions
79 silly doSerial global-install 0
80 silly doParallel fetch 1
81 verbose correctMkdir /Users/johanwedfelt/.npm/_locks correctMkdir not in flight; initializing
82 verbose lock using /Users/johanwedfelt/.npm/_locks/staging-84ea0668c92cc698.lock for /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging
83 silly doParallel extract 1
84 silly extract [email protected]
85 verbose unbuild node_modules/.staging/wiring-pi-4c0af496
86 silly gentlyRm /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496 is being purged from base /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros
87 verbose gentlyRm don't care about contents; nuking /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496
88 verbose tar unpack /Users/johanwedfelt/.npm/wiring-pi/2.1.1/package.tgz
89 verbose tar unpacking to /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496
90 silly gentlyRm /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496 is being purged
91 verbose gentlyRm don't care about contents; nuking /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496
92 silly gunzTarPerm modes [ '755', '644' ]
93 silly gunzTarPerm extractEntry package.json
94 silly gunzTarPerm extractEntry .npmignore
95 silly gunzTarPerm extractEntry README.md
96 silly gunzTarPerm extractEntry CONTRIBUTING.md
97 silly gunzTarPerm extractEntry DOCUMENTATION.md
98 silly gunzTarPerm extractEntry src/wiringPiI2C.cc
99 silly gunzTarPerm extractEntry src/addon.cc
100 silly gunzTarPerm extractEntry src/devlib/maxdetect.cc
101 silly gunzTarPerm extractEntry src/devlib/devlib.cc
102 silly gunzTarPerm extractEntry src/devlib/ds1302.cc
103 silly gunzTarPerm extractEntry src/devlib/ds1302.h
104 silly gunzTarPerm extractEntry src/devlib/gertboard.cc
105 silly gunzTarPerm extractEntry src/devlib/gertboard.h
106 silly gunzTarPerm extractEntry src/devlib/lcd.cc
107 silly gunzTarPerm extractEntry src/devlib/lcd.h
108 silly gunzTarPerm extractEntry src/devlib/lcd128x64.cc
109 silly gunzTarPerm extractEntry src/devlib/lcd128x64.h
110 silly gunzTarPerm extractEntry src/devlib/devlib.h
111 silly gunzTarPerm extractEntry src/devlib/maxdetect.h
112 silly gunzTarPerm extractEntry src/devlib/piFace.cc
113 silly gunzTarPerm extractEntry src/devlib/piFace.h
114 silly gunzTarPerm extractEntry src/devlib/piGlow.cc
115 silly gunzTarPerm extractEntry src/devlib/piGlow.h
116 silly gunzTarPerm extractEntry src/devlib/piNes.cc
117 silly gunzTarPerm extractEntry src/devlib/piNes.h
118 silly gunzTarPerm extractEntry src/devlib/tcs34725.cc
119 silly gunzTarPerm extractEntry src/devlib/tcs34725.h
120 silly gunzTarPerm extractEntry src/extensions/mcp23s17.h
121 silly gunzTarPerm extractEntry src/extensions/dac7678.cc
122 silly gunzTarPerm extractEntry src/extensions/drcSerial.cc
123 silly gunzTarPerm extractEntry src/extensions/drcSerial.h
124 silly gunzTarPerm extractEntry src/extensions/extensions.cc
125 silly gunzTarPerm extractEntry src/extensions/extensions.h
126 silly gunzTarPerm extractEntry src/extensions/max31855.cc
127 silly gunzTarPerm extractEntry src/extensions/max31855.h
128 silly gunzTarPerm extractEntry src/extensions/max5322.cc
129 silly gunzTarPerm extractEntry src/extensions/max5322.h
130 silly gunzTarPerm extractEntry src/extensions/mcp23008.cc
131 silly gunzTarPerm extractEntry src/extensions/mcp23008.h
132 silly gunzTarPerm extractEntry src/extensions/mcp23016.cc
133 silly gunzTarPerm extractEntry src/extensions/mcp23016.h
134 silly gunzTarPerm extractEntry src/extensions/mcp23017.cc
135 silly gunzTarPerm extractEntry src/extensions/mcp23017.h
136 silly gunzTarPerm extractEntry src/extensions/mcp23s08.cc
137 silly gunzTarPerm extractEntry src/extensions/mcp23s08.h
138 silly gunzTarPerm extractEntry src/extensions/mcp23s17.cc
139 silly gunzTarPerm extractEntry src/extensions/dac7678.h
140 silly gunzTarPerm extractEntry src/extensions/mcp3002.cc
141 silly gunzTarPerm extractEntry src/extensions/mcp3002.h
142 silly gunzTarPerm extractEntry src/extensions/mcp3004.cc
143 silly gunzTarPerm extractEntry src/extensions/mcp3004.h
144 silly gunzTarPerm extractEntry src/extensions/mcp3422.cc
145 silly gunzTarPerm extractEntry src/extensions/mcp3422.h
146 silly gunzTarPerm extractEntry src/extensions/mcp4802.cc
147 silly gunzTarPerm extractEntry src/extensions/mcp4802.h
148 silly gunzTarPerm extractEntry src/extensions/pca9685.cc
149 silly gunzTarPerm extractEntry src/extensions/pca9685.h
150 silly gunzTarPerm extractEntry src/extensions/pcf8574.cc
151 silly gunzTarPerm extractEntry src/extensions/pcf8574.h
152 silly gunzTarPerm extractEntry src/extensions/pcf8591.cc
153 silly gunzTarPerm extractEntry src/extensions/pcf8591.h
154 silly gunzTarPerm extractEntry src/extensions/sn3218.cc
155 silly gunzTarPerm extractEntry src/extensions/sn3218.h
156 silly gunzTarPerm extractEntry src/extensions/sr595.cc
157 silly gunzTarPerm extractEntry src/extensions/sr595.h
158 silly gunzTarPerm extractEntry src/softPwm.cc
159 silly gunzTarPerm extractEntry src/softPwm.h
160 silly gunzTarPerm extractEntry src/softServo.cc
161 silly gunzTarPerm extractEntry src/softServo.h
162 silly gunzTarPerm extractEntry src/softTone.cc
163 silly gunzTarPerm extractEntry src/softTone.h
164 silly gunzTarPerm extractEntry src/wiringPi.cc
165 silly gunzTarPerm extractEntry src/wiringPi.h
166 silly gunzTarPerm extractEntry src/addon.h
167 silly gunzTarPerm extractEntry src/wiringPiI2C.h
168 silly gunzTarPerm extractEntry src/wiringPiISR.cc
169 silly gunzTarPerm extractEntry src/wiringPiISR.h
170 silly gunzTarPerm extractEntry src/wiringPiSPI.cc
171 silly gunzTarPerm extractEntry src/wiringPiSPI.h
172 silly gunzTarPerm extractEntry src/wiringSerial.cc
173 silly gunzTarPerm extractEntry src/wiringSerial.h
174 silly gunzTarPerm extractEntry src/wiringShift.cc
175 silly gunzTarPerm extractEntry src/wiringShift.h
176 silly gunzTarPerm extractEntry src/wpi.cc
177 silly gunzTarPerm extractEntry src/wpi.h
178 silly gunzTarPerm extractEntry .gitmodules
179 silly gunzTarPerm extractEntry examples/blink.js
180 silly gunzTarPerm extractEntry examples/pwm.js
181 silly gunzTarPerm extractEntry install.sh
182 silly gunzTarPerm extractEntry lib/exports.js
183 silly gunzTarPerm extractEntry CHANGELOG.md
184 silly gunzTarPerm extractEntry patchs/devLib_Makefile.patch
185 silly gunzTarPerm extractEntry patchs/gpio_Makefile.patch
186 silly gunzTarPerm extractEntry binding.gyp
187 silly gentlyRm /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496/node_modules is being purged
188 verbose gentlyRm don't care about contents; nuking /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496/node_modules
189 silly doParallel preinstall 1
190 silly preinstall [email protected] /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496
191 info lifecycle [email protected]~preinstall: [email protected]
192 silly lifecycle [email protected]~preinstall: no script for preinstall, continuing
193 silly doReverseSerial remove 0
194 silly doSerial move 0
195 silly doSerial finalize 1
196 silly finalize /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/wiring-pi
197 silly doSerial build 1
198 silly build [email protected]
199 info linkStuff [email protected]
200 silly linkStuff [email protected] has /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules as its parent node_modules
201 verbose linkBins [email protected]
202 verbose linkMans [email protected]
203 silly doSerial global-link 0
204 silly doParallel update-linked 0
205 silly doSerial install 1
206 silly install [email protected] /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging/wiring-pi-4c0af496
207 info lifecycle [email protected]~install: [email protected]
208 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
209 verbose lifecycle [email protected]~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/wiring-pi/node_modules/.bin:/Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.bin:/usr/local/Cellar/node/6.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
210 verbose lifecycle [email protected]~install: CWD: /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/wiring-pi
211 silly lifecycle [email protected]~install: Args: [ '-c', '/bin/bash ./install.sh' ]
212 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
213 info lifecycle [email protected]~install: Failed to exec install script
214 verbose unlock done using /Users/johanwedfelt/.npm/_locks/staging-84ea0668c92cc698.lock for /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros/node_modules/.staging
215 silly rollbackFailedOptional Starting
216 silly rollbackFailedOptional Finishing
217 silly runTopLevelLifecycles Starting
218 silly runTopLevelLifecycles Finishing
219 silly install printInstalled
220 warn [email protected] No repository field.
221 verbose stack Error: [email protected] install: `/bin/bash ./install.sh`
221 verbose stack Exit status 1
221 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
221 verbose stack     at emitTwo (events.js:106:13)
221 verbose stack     at EventEmitter.emit (events.js:191:7)
221 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
221 verbose stack     at emitTwo (events.js:106:13)
221 verbose stack     at ChildProcess.emit (events.js:191:7)
221 verbose stack     at maybeClose (internal/child_process.js:852:16)
221 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
222 verbose pkgid [email protected]
223 verbose cwd /Applications/XAMPP/xamppfiles/htdocs/private/raspberry-server-ros
224 error Darwin 15.5.0
225 error argv "/usr/local/Cellar/node/6.3.0/bin/node" "/usr/local/bin/npm" "install" "wiring-pi" "--save"
226 error node v6.3.0
227 error npm  v3.10.3
228 error code ELIFECYCLE
229 error [email protected] install: `/bin/bash ./install.sh`
229 error Exit status 1
230 error Failed at the [email protected] install script '/bin/bash ./install.sh'.
230 error Make sure you have the latest version of node.js and npm installed.
230 error If you do, this is most likely a problem with the wiring-pi package,
230 error not with npm itself.
230 error Tell the author that this fails on your system:
230 error     /bin/bash ./install.sh
230 error You can get information on how to open an issue for this project with:
230 error     npm bugs wiring-pi
230 error Or if that isn't available, you can get their info via:
230 error     npm owner ls wiring-pi
230 error There is likely additional logging output above.
231 verbose exit [ 1, true ]

Update to use latest wiringpi ?

Are there any plans to update this to us the latest wiring-pi from git://git.drogon.net/wiringPi which has support for the Raspberry Pi 2 ( the current version uses the old github repository for wiringpi, which has not been updated in some time and does not work with the recent Pi :( )

build error when installing on RP2

When executing npm install wiring-pi on a Raspberry PI 2 the following log contained error

pi@raspberrypi ~ $ npm install wiring-pi
npm WARN package.json [email protected] No repository field.

[email protected] install /home/pi/node_modules/wiring-pi
/bin/bash ./install.sh

Cloning libWiringPi ... done.
patching file ./wiringpi/devLib/Makefile
patching file ./wiringpi/gpio/Makefile
Making libWiringPi ... done.
Making devLib ...done.
Unistalling gpio utility ... done.
Making gpio utility ... done.
Installing gpio utility ... done.
Making wiring-pi ... child_process: customFds option is deprecated, use stdio instead.
make: Entering directory '/home/pi/node_modules/wiring-pi/build'
CXX(target) Release/obj.target/wiringPi/src/addon.o
../src/addon.cc: In function ‘void throw_error(const char_, ...)’:
../src/addon.cc:30:3: error: ‘ThrowException’ is not a member of ‘v8’
../src/addon.cc:30:43: error: ‘New’ is not a member of ‘v8::String’
wiringPi.target.mk:126: recipe for target 'Release/obj.target/wiringPi/src/addon.o' failed
make: *_* [Release/obj.target/wiringPi/src/addon.o] Error 1
make: Leaving directory '/home/pi/node_modules/wiring-pi/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.18.14-v7+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/wiring-pi
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
done.
Enjoy !
[email protected] node_modules/wiring-pi

And the module cannot be loaded in node:

pi@raspberrypi ~ $ node

var wpi = require('wiring-pi');
Error: Cannot find module '../build/Release/wiringPi'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/pi/node_modules/wiring-pi/lib/exports.js:1:80)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

any clue?

Thanks

About PWM

Hi,
Is there a raison why the pwmWrite() is not exported as well ?
Thanks

not work on latest raspbian

sudo node main.js
Unable to determine hardware version. I see: Hardware   : BCM2835
,
 - expecting BCM2708 or BCM2709. Please report this to [email protected]
pi@raspberrypi:~/sagan/gpio $ gpio -v
gpio version: 2.25
Copyright (c) 2012-2015 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Unable to determine hardware version. I see: Hardware   : BCM2835
,
 - expecting BCM2708 or BCM2709. Please report this to [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.