Make blink1 (and ledborg) consistent with both docs and cheerlight colours

Close #102
This commit is contained in:
dceejay
2015-03-12 11:12:44 +00:00
parent 7307891aee
commit 7135bb3067
6 changed files with 17 additions and 9 deletions

View File

@@ -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()];

View File

@@ -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" : {
},