From ace67b015439d05e7520839bbe9ae877116157fb Mon Sep 17 00:00:00 2001 From: cymplecy Date: Sun, 15 Apr 2018 11:09:32 +0100 Subject: [PATCH] Neopixel node:Remove node.warn message and update README.md (#433) --- hardware/neopixel/README.md | 12 ++++++++++++ hardware/neopixel/neopixel.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) mode change 100644 => 100755 hardware/neopixel/README.md diff --git a/hardware/neopixel/README.md b/hardware/neopixel/README.md old mode 100644 new mode 100755 index e14ed032..e4a71cf9 --- 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 7ed79365..25207c29 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"});