pattern should be int
This commit is contained in:
		
							parent
							
								
									5e819c74ed
								
							
						
					
					
						commit
						501c3af95a
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -27,11 +27,7 @@ function tick_pattern() { | |||
|   var b = Math.floor(Math.random() * 100); | ||||
| 
 | ||||
|   for (let i = 0; i < cfg.leds; i++) { | ||||
|     if (i % 3 == 0) { | ||||
|       next_pattern[i] = r; | ||||
|       next_pattern[i + 1] = g; | ||||
|       next_pattern[i + 2] = b; | ||||
|     } | ||||
|     next_pattern[i] = ((r << 8) + g) << 8 + b; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue