Skip to content

Commit ace67b0

Browse files
cymplecydceejay
authored andcommitted
Neopixel node:Remove node.warn message and update README.md (#433)
1 parent 0f55fc1 commit ace67b0

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

hardware/neopixel/README.md

100644100755
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,15 @@ where r, g and b are 0-255.
6666

6767
A range of pixels from position `x` to `y` can be set by `msg.payload`
6868
with a CSV string `x,y,r,g,b`
69+
70+
#### Brightness
71+
72+
The overall brightness of the pixels can be set to a level in the 0-100 range (0 being off, 100 being full brightness).
73+
It can also be set via `msg.brightness`
74+
The default level is 100 (full brightness)
75+
76+
#### Gamma correction
77+
78+
The node uses gamma correction to display colours as naturally as possible.
79+
This can be disabled if required. (e.g when working with low brightness levels)
80+

hardware/neopixel/neopixel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = function(RED) {
109109
else { node.warn("Invalid payload : "+pay); }
110110
}
111111
}
112-
node.warn("GAMMA: "+node.gamma);
112+
113113
node.child = spawn(piCommand, [node.pixels, node.wipe, node.mode, node.brightness, node.gamma]);
114114
node.status({fill:"green",shape:"dot",text:"ok"});
115115

0 commit comments

Comments
 (0)