add oldlace to ledborg docs, and try to make clearer.

to close #149
This commit is contained in:
Dave Conway-Jones 2015-11-30 16:58:02 +00:00
parent 25eab38abc
commit 083d2841db
3 changed files with 4 additions and 4 deletions

View File

@ -27,8 +27,8 @@
<p>PiBorg LedBorg LED output node. Expects a <b>msg.payload</b> with a three digit rgb triple, from <b>000</b> to <b>222</b>.</p>
<p>See <i><a href="http://www.piborg.com/ledborg/install" target="_new">the PiBorg site</a></i> for more information.</p>
<p>You can also use a <b>msg.payload</b> in the standard hex format "#rrggbb".</p>
<p>You can also use the @cheerlight colour names - red, amber, green, blue,
cyan, magenta, yellow, orange, pink, purple, white, warmwhite, black</p>
<p>You can use the @cheerlight colour names - red, green, blue, cyan, magenta,
yellow, orange, pink, purple, white, oldlace (warmwhite), and also amber and black (off).</p>
<p>You may also supply a comma separated rrr,ggg,bbb where each value can be between 0 and 255.</p>
<p>You can only use one LEDborg node per flow... but you may wire multiple things to it.</p>
<p><b>Note</b> : This node uses physical pins 11, 13, and 15. These cannot be used for anything else while this node is in use.</p>

View File

@ -78,7 +78,7 @@ module.exports = function(RED) {
// 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","oldlace":"221",
"warmwhite":"221","purple":"101","magenta":"202","yellow":"220","amber":"220","orange":"210","black":"000"}
"warmwhite":"221","purple":"101","magenta":"202","yellow":"220","amber":"220","orange":"210","black":"000","off":"000"}
if (msg.payload.toLowerCase() in colors) {
rgb = colors[msg.payload.toLowerCase()];
rgb = Number(rgb[0])*50+","+Number(rgb[1])*50+","+Number(rgb[2])*50;

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-ledborg",
"version" : "0.0.10",
"version" : "0.0.11",
"description" : "A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.",
"dependencies" : {
},