1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/hardware/PiLiter
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
..
39-rpi-piliter.html Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00
39-rpi-piliter.js Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00
LICENSE Add Pi-LITEr specific node for Pi users 2014-07-25 10:07:23 +01:00
package.json Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00
README.md Add Pi-LITEr specific node for Pi users 2014-07-25 10:07:23 +01:00

node-red-node-piliter

A Node-RED node to control a Pimorini Pi-LITEr 8 LED 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-piliter

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

Raspberry Pi-LITEr output node. The Pi-LITEr must be fitted.

Operates in one of 5 different modes :

  • Byte Mode - expects a value between 0 and 255, and each of the LEDs represent 1 bit.
  • Meter Mode - expects a value between 0 and 8, the led lit corresponds to the input value - like a meter needle.
  • Bar Mode - expects a value between 0 and 8, similar to meter - but all the leds up to the value are turned on - like a mini bar chart.
  • All LEDs Mode - expects a 1 or 0 - turns on and off ALL the LEDs
  • Object Mode - expects a object specifying the LED and state eg. {led:3,state:0} to set LED3 off.

Requires the WiringPi gpio command in order to work.