Skip to content

Commit

Permalink
Neopixel node:Remove node.warn message and update README.md (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
cymplecy authored and dceejay committed Apr 15, 2018
1 parent 0f55fc1 commit ace67b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions hardware/neopixel/README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)

2 changes: 1 addition & 1 deletion hardware/neopixel/neopixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});

Expand Down

0 comments on commit ace67b0

Please sign in to comment.