From 96bfc5b672299c144809d88b031b57f3b079b937 Mon Sep 17 00:00:00 2001 From: dceejay Date: Thu, 12 Mar 2015 13:54:20 +0000 Subject: [PATCH] update redmes and some colours for blink1, ledborg and digirgb --- hardware/LEDborg/78-ledborg.js | 8 ++++---- hardware/LEDborg/package.json | 2 +- hardware/blink1/77-blink1.js | 2 +- hardware/blink1/README.md | 3 ++- hardware/blink1/package.json | 2 +- hardware/digiRGB/78-digiRGB.html | 3 ++- hardware/digiRGB/README.md | 3 ++- hardware/digiRGB/package.json | 12 ++++++------ 8 files changed, 19 insertions(+), 16 deletions(-) diff --git a/hardware/LEDborg/78-ledborg.js b/hardware/LEDborg/78-ledborg.js index 8c2df5b2..7c84f5e7 100644 --- a/hardware/LEDborg/78-ledborg.js +++ b/hardware/LEDborg/78-ledborg.js @@ -24,17 +24,17 @@ module.exports = function(RED) { var gpioCommand = __dirname+'/nrgpio'; if (!fs.existsSync("/dev/ttyAMA0")) { // unlikely if not on a Pi - //util.log("Info : Ignoring Raspberry Pibrella specific node."); - throw "Info : Ignoring Raspberry Pibrella specific node."; + //util.log("Info : Ignoring Raspberry LEDborg specific node."); + throw "Info : Ignoring Raspberry LEDborg specific node."; } if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) { - util.log("[rpi-pibrella] Info : Can't find RPi.GPIO python library."); + util.log("[rpi-ledborg] Info : Can't find RPi.GPIO python library."); throw "Warning : Can't find RPi.GPIO python library."; } if ( !(1 & parseInt ((fs.statSync(gpioCommand).mode & parseInt ("777", 8)).toString (8)[0]) )) { - util.log("[rpi-pibrella] Error : "+gpioCommand+" needs to be executable."); + util.log("[rpi-ledborg] Error : "+gpioCommand+" needs to be executable."); throw "Error : nrgpio must to be executable."; } diff --git a/hardware/LEDborg/package.json b/hardware/LEDborg/package.json index cbed63ef..2655bc99 100644 --- a/hardware/LEDborg/package.json +++ b/hardware/LEDborg/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-ledborg", - "version" : "0.0.4", + "version" : "0.0.5", "description" : "A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.", "dependencies" : { }, diff --git a/hardware/blink1/77-blink1.js b/hardware/blink1/77-blink1.js index 8406a74e..eae524e1 100644 --- a/hardware/blink1/77-blink1.js +++ b/hardware/blink1/77-blink1.js @@ -54,7 +54,7 @@ module.exports = function(RED) { // these are the @cheerlight ones. var colors = {"red":"#FF0000","green":"#00FF00","blue":"#0000FF","cyan":"#00FFFF", "white":"#FFFFFF","warmwhite":"#FDF5E6","oldlace":"#FDF5E6","purple":"#800080","magenta":"#FF00FF", - "yellow":"#FFFF00","amber":"#FFD200","orange":"#FFA500","black":"#000000","pink","#FF69B4"} + "yellow":"#FFFF00","amber":"#FFD200","orange":"#FFA500","black":"#000000","pink":"#FF69B4"} if (msg.payload.toLowerCase() in colors) { var c = colors[msg.payload.toLowerCase()]; r = parseInt(c.slice(1,3),16); diff --git a/hardware/blink1/README.md b/hardware/blink1/README.md index 8614fb7e..b18500bf 100644 --- a/hardware/blink1/README.md +++ b/hardware/blink1/README.md @@ -13,7 +13,8 @@ and

Simple output node to drive digispark RGB

-

Requires msg.payload to be of the form 'r,g,b'

+

Requires msg.payload to be of the form 'r,g,b' decimals 0-255, or a hex string "#rrggbb". For example:

+