0.0.6 • Published 12 years ago

piface-node v0.0.6

Weekly downloads
29
License
-
Repository
github
Last release
12 years ago

Sorry, this documentation is currently incomplete. I went through a bit of trial and error to get things going myself, and some of the dependencies aren't listed.

About

Interface to the Raspberry Pi Piface board using Node.js. This addon shouldn't require any sudo or root privileges to run, as long as your user is in the "spi" group on your Pi.

Dependencies

piface

Everything piface, availble here. Follow the "C" library installation.

Node.js

You'll need Node.js, of course. It's not quite as easy to install on a Raspberry Pi as it is on other platforms, so you might need to dig around to find the newest available version for the Pi's architecture. At the time I write this, the latest available packaged build for Raspberry Pi is v0.10.17.

Node-Gyp

Build tool for Node.js addons. You can find it here.

Installation of piface-node

$ node-gyp configure
$ node-gyp build

Using piface-node

Something along these lines should do it:

var pfio = require('/path/to/build/Release/pfio');
pfio.init();
pfio.digital_write(0,1);
pfio.deinit();
0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago