diff --git a/hardware/neopixel/README.md b/hardware/neopixel/README.md old mode 100644 new mode 100755 index e14ed0320..e4a71cf9f --- a/hardware/neopixel/README.md +++ b/hardware/neopixel/README.md @@ -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) + diff --git a/hardware/neopixel/neopixel.js b/hardware/neopixel/neopixel.js index 7ed79365f..25207c292 100755 --- a/hardware/neopixel/neopixel.js +++ b/hardware/neopixel/neopixel.js @@ -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"});