color and timing (ws2812_i2s) (#493)
This commit is contained in:
		
							parent
							
								
									a0f846013c
								
							
						
					
					
						commit
						962196ef1d
					
				
					 2 changed files with 9 additions and 6 deletions
				
			
		|  | @ -31,11 +31,14 @@ | |||
| extern "C" { | ||||
| #endif | ||||
| 
 | ||||
| typedef struct { | ||||
|     uint8_t red; | ||||
|     uint8_t green; | ||||
|     uint8_t blue; | ||||
|     uint8_t white; | ||||
| typedef union { | ||||
|     struct { | ||||
|         uint8_t blue; //LSB
 | ||||
|         uint8_t green; | ||||
|         uint8_t red; | ||||
|         uint8_t white; | ||||
|     }; | ||||
|     uint32_t color; // 0xWWRRGGBB
 | ||||
| } ws2812_pixel_t; | ||||
| 
 | ||||
| typedef enum { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue