Tidy up adjustable ws2812 timing (#15299)
This commit is contained in:
		
							parent
							
								
									3d00620711
								
							
						
					
					
						commit
						5e9c29da0d
					
				
					 6 changed files with 55 additions and 58 deletions
				
			
		| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
#endif
 | 
			
		||||
#define BYTES_FOR_LED (BYTES_FOR_LED_BYTE * WS2812_CHANNELS)
 | 
			
		||||
#define DATA_SIZE (BYTES_FOR_LED * RGBLED_NUM)
 | 
			
		||||
#define RESET_SIZE (1000 * WS2812_TRST_US / (2 * 1250))
 | 
			
		||||
#define RESET_SIZE (1000 * WS2812_TRST_US / (2 * WS2812_TIMING))
 | 
			
		||||
#define PREAMBLE_SIZE 4
 | 
			
		||||
 | 
			
		||||
static uint8_t txbuf[PREAMBLE_SIZE + DATA_SIZE + RESET_SIZE] = {0};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue