mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Neopixel node:Remove node.warn message and update README.md (#433)
This commit is contained in:
		
				
					committed by
					
						
						Dave Conway-Jones
					
				
			
			
				
	
			
			
			
						parent
						
							0f55fc160e
						
					
				
				
					commit
					ace67b0154
				
			
							
								
								
									
										12
									
								
								hardware/neopixel/README.md
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										12
									
								
								hardware/neopixel/README.md
									
									
									
									
									
										
										
										Normal file → Executable 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) 
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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"});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user