Unify RGB and RGBW commands (#7297)
* Fix unicode in comments Co-Authored-By: fauxpark <fauxpark@gmail.com> * Remove separate RGBW implementation for a unified function * Set White to 0 in RGBW LEDs This is just to get this working, later, proper brightness can be handled elsewhere. * Use us instead of nanoseconds(?) since it renders correctly on web * Remove RGBW function from arm/ws2812.h * Remove RGBW function from arm/ws2812.c * Formatting changes * Add doc info
This commit is contained in:
		
							parent
							
								
									78205e64a7
								
							
						
					
					
						commit
						60e4921378
					
				
					 8 changed files with 45 additions and 41 deletions
				
			
		| 
						 | 
				
			
			@ -34,8 +34,7 @@
 | 
			
		|||
 * The functions will perform the following actions:
 | 
			
		||||
 *         - Set the data-out pin as output
 | 
			
		||||
 *         - Send out the LED data
 | 
			
		||||
 *         - Wait 50<EFBFBD>s to reset the LEDs
 | 
			
		||||
 *         - Wait 50us to reset the LEDs
 | 
			
		||||
 */
 | 
			
		||||
void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
 | 
			
		||||
void ws2812_setleds_pin(LED_TYPE *ledarray, uint16_t number_of_leds, uint8_t pinmask);
 | 
			
		||||
void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue