node-red-nodes/hardware/PiFace
Dave C-J 48b0c3a68b Update Pi nodes to allow initial read / level set.
More consitent use of icons
Move to Raspberry Pi category
2014-10-27 20:28:05 +00:00
..
37-rpi-piface.html Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00
37-rpi-piface.js Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00
LICENSE Add npms for various hardware nodes, Blink1, DigiRGB, LEDBorg, PiFace 2014-07-08 22:57:42 +01:00
README.md Add npms for various hardware nodes, Blink1, DigiRGB, LEDBorg, PiFace 2014-07-08 22:57:42 +01:00
package.json Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00

README.md

node-red-node-piface

Node-RED nodes to control a PiFace Digital add-on board for a Raspberry-Pi.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-node-piface

Pre-reqs

Requires the WiringPi gpio command to be installed in order to work. See the WiringPi site for details on how to do this.

Usage

A pair of input and output Node-RED nodes for the Raspberry Pi PiFace Digital add-on board.

###Output

The PiFace output node will set the selected relay, LED, or pin on or off depending on the value passed in. Expects a msg.payload with either a 1 or 0 (or true or false).

Requires the WiringPi gpio command in order to work (see pre-reqs).

###Input

The PiFace input node generates a msg.payload with either a 0 or 1 depending on the state of the input pin.

You may also enable the input pullup resistor if required.

The msg.topic is set to piface/{the pin number}

Requires the WiringPi gpio command in order to work (see pre-reqs).

Note: This node currently polls the pin every 250mS. This is not ideal as it loads the cpu.