From 7135bb3067ca3357222d5ced97b6475653beb75b Mon Sep 17 00:00:00 2001 From: dceejay Date: Thu, 12 Mar 2015 11:12:44 +0000 Subject: [PATCH] Make blink1 (and ledborg) consistent with both docs and cheerlight colours Close #102 --- hardware/LEDborg/78-ledborg.js | 2 +- hardware/LEDborg/package.json | 2 +- hardware/blink1/77-blink1.html | 2 +- hardware/blink1/77-blink1.js | 9 +++++---- hardware/blink1/README.md | 7 +++++++ hardware/blink1/package.json | 4 ++-- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/hardware/LEDborg/78-ledborg.js b/hardware/LEDborg/78-ledborg.js index 7b5b4f84..8c2df5b2 100644 --- a/hardware/LEDborg/78-ledborg.js +++ b/hardware/LEDborg/78-ledborg.js @@ -74,7 +74,7 @@ module.exports = function(RED) { else { // you can add fancy colours by name here if you want... // these are the @cheerlight ones. - var colors = {"red":"200","green":"020","blue":"002","cyan":"022","white":"222","pink":"201", + var colors = {"red":"200","green":"020","blue":"002","cyan":"022","white":"222","pink":"201","oldlace":"221", "warmwhite":"221","purple":"101","magenta":"202","yellow":"220","amber":"220","orange":"210","black":"000"} if (msg.payload.toLowerCase() in colors) { rgb = colors[msg.payload.toLowerCase()]; diff --git a/hardware/LEDborg/package.json b/hardware/LEDborg/package.json index f771e96a..cbed63ef 100644 --- a/hardware/LEDborg/package.json +++ b/hardware/LEDborg/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-ledborg", - "version" : "0.0.3", + "version" : "0.0.4", "description" : "A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.", "dependencies" : { }, diff --git a/hardware/blink1/77-blink1.html b/hardware/blink1/77-blink1.html index 48a40b6a..23d2867a 100644 --- a/hardware/blink1/77-blink1.html +++ b/hardware/blink1/77-blink1.html @@ -28,7 +28,7 @@