tick
This commit is contained in:
		
							parent
							
								
									869a627680
								
							
						
					
					
						commit
						5e819c74ed
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
										
									
									
									
								
							|  | @ -10,3 +10,7 @@ server.recv( | ||||||
|     console.log(`error callback: ${res}`); |     console.log(`error callback: ${res}`); | ||||||
|   } |   } | ||||||
| ); | ); | ||||||
|  | 
 | ||||||
|  | while (true) { | ||||||
|  |   lights.tick(); | ||||||
|  | } | ||||||
|  | @ -47,6 +47,7 @@ export function tick() { | ||||||
|     tick_pattern(); |     tick_pattern(); | ||||||
|   } |   } | ||||||
|   ws281x.render(pixels); |   ws281x.render(pixels); | ||||||
|  |   ws281x.sleep(10); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function fade(index) { | function fade(index) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue