Neopixel node:Remove node.warn message and update README.md (#433)

This commit is contained in:
cymplecy 2018-04-15 11:09:32 +01:00 committed by Dave Conway-Jones
parent 0f55fc160e
commit ace67b0154
2 changed files with 13 additions and 1 deletions

12
hardware/neopixel/README.md Normal file → Executable file
View File

@ -66,3 +66,15 @@ where r, g and b are 0-255.
A range of pixels from position `x` to `y` can be set by `msg.payload`
with a CSV string `x,y,r,g,b`
#### Brightness
The overall brightness of the pixels can be set to a level in the 0-100 range (0 being off, 100 being full brightness).
It can also be set via `msg.brightness`
The default level is 100 (full brightness)
#### Gamma correction
The node uses gamma correction to display colours as naturally as possible.
This can be disabled if required. (e.g when working with low brightness levels)

View File

@ -109,7 +109,7 @@ module.exports = function(RED) {
else { node.warn("Invalid payload : "+pay); }
}
}
node.warn("GAMMA: "+node.gamma);
node.child = spawn(piCommand, [node.pixels, node.wipe, node.mode, node.brightness, node.gamma]);
node.status({fill:"green",shape:"dot",text:"ok"});